From a47a56986888838d2e18a5087cfeb466b39c6b3e Mon Sep 17 00:00:00 2001 From: Richard Bowman Date: Tue, 5 May 2026 22:21:06 +0100 Subject: [PATCH] Update usage of hold_global_lock The argument to `ThingServerInterface.hold_global_lock` was changed, so that `True` is now the default behaviour. This commit updates that in the one place where it's used. --- src/openflexure_microscope_server/things/stage/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/stage/__init__.py b/src/openflexure_microscope_server/things/stage/__init__.py index f9c9973f..a42190c6 100644 --- a/src/openflexure_microscope_server/things/stage/__init__.py +++ b/src/openflexure_microscope_server/things/stage/__init__.py @@ -471,7 +471,7 @@ class BaseStage(lt.Thing): command: Optional[JogCommand] = first_command # prevent others using the stage while jogging. - with self._thing_server_interface.hold_global_lock(True), self._hardware_lock: + with self._thing_server_interface.hold_global_lock(), self._hardware_lock: while command is not None: if command.displacement is not None: self._hardware_start_move_relative(command.displacement)