[shotwell/wip/phako/external-gstreamer: 42/43] ExternalHelper: Throw error on timeout



commit 22e5dc456e0d4117f95c8aa35420dccc7953535b
Author: Jens Georg <mail jensge org>
Date:   Tue Jul 2 23:25:14 2019 +0200

    ExternalHelper: Throw error on timeout

 src/ExternalHelper.vala | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/ExternalHelper.vala b/src/ExternalHelper.vala
index d74ac46a..ce5903d3 100644
--- a/src/ExternalHelper.vala
+++ b/src/ExternalHelper.vala
@@ -89,9 +89,10 @@ public class ExternalProxy<G> : Object, Initable {
             remote_process.wait_async.begin(null, on_process_exited);
             startup_timeout = Timeout.add_seconds(10, () => {
                 startup_timeout = 0;
-                saved_get_remote_callback();
+                remote_process = null;
                 critical("=====> Timeout");
 
+                saved_get_remote_callback();
                 return false;
             });
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]