summaryrefslogtreecommitdiff
path: root/camlibs/ptp2
diff options
context:
space:
mode:
Diffstat (limited to 'camlibs/ptp2')
-rw-r--r--camlibs/ptp2/library.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index 1db4ee04a..fd5c7f1a4 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -5458,6 +5458,11 @@ downloadfile:
path->name[0]='\0';
path->folder[0]='\0';
+ /* Synthesize a capture complete event to avoid waits. */
+ event.Code = PTP_EC_CaptureComplete;
+ event.Nparam = 0;
+ ptp_add_event (params, &event);
+
if (newobject != 0) /* NOTE: association add handled */
return add_object_to_fs_and_path (camera, newobject, path, context);
return GP_ERROR;