# HG changeset patch
# User Tuomo Valkonen <tuomov@iki.fi>
# Date 1516753210 0
# Node ID 170d69da51bb03d9d0779dc611f26e479ed724d5
# Parent  121aa89fe670af850b8e35a40c2654cd43d6fefd
launch error handling fix

diff -r 121aa89fe670 -r 170d69da51bb backup.py
--- a/backup.py	Tue Jan 23 22:55:00 2018 +0000
+++ b/backup.py	Wed Jan 24 00:20:10 2018 +0000
@@ -319,11 +319,11 @@
             self.logger.debug("Queued operation aborted")
         else:
             self.scheduled_operation=None
-            self.current_operation=op
-            self.current_operation['when_monotonic']=time.monotonic()
 
             self.__launch(op)
 
+            self.current_operation=op
+            self.current_operation['when_monotonic']=time.monotonic()
             self.state=ACTIVE
             self.__update_status()