w
This commit is contained in:
@@ -432,6 +432,7 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
||||
self._start_monitor_async_data_emission.clear() # Stop monitoring
|
||||
# NOTE Important check as set_finished or set_exception should not be called
|
||||
# if the status is already done (e.g. cancelled externally)
|
||||
logger.info(f"Status callback called for {self.name}, exception: {exception}")
|
||||
if status.done:
|
||||
return # Already done and cancelled externally.
|
||||
if exception:
|
||||
@@ -473,6 +474,7 @@ class MCSCardCSAXS(PSIDeviceBase, MCSCard):
|
||||
self._scan_done_callbacks.append(partial(self._status_callback, status_async_data))
|
||||
|
||||
# Set the event to start monitoring async data emission
|
||||
logger.info(f"Starting to monitor async data emission for {self.name}...")
|
||||
self._start_monitor_async_data_emission.set()
|
||||
|
||||
# Add CompareStatus for Acquiring DONE
|
||||
|
||||
Reference in New Issue
Block a user