Skip to content

Commit e059206

Browse files
committed
deviceserver: move code comment to the code section it talks about.
The two line comment being moved was separated from the block code it talks about in commit 76ec331. This commit moves it to the right place.
1 parent c0a7073 commit e059206

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

microscope/deviceserver.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ def run(self):
165165
logger.addHandler(log_handler)
166166
logger.info('Device initialized; starting daemon.')
167167

168-
# Run the Pyro daemon in a separate thread so that we can do
169-
# clean shutdown under Windows.
170168
pyro_daemon.register(self._device, type(self._device).__name__)
171169
if isinstance(self._device, microscope.devices.ControllerDevice):
172170
# AUTOPROXY should be enabled by default. If we find it
@@ -187,9 +185,10 @@ def run(self):
187185
sub_device._logger.addHandler(stderr_handler)
188186
sub_device._logger.addHandler(log_handler)
189187
sub_device._logger.addFilter(Filter())
190-
# This requires
191188
pyro_daemon.register(sub_device)
192189

190+
# Run the Pyro daemon in a separate thread so that we can do
191+
# clean shutdown under Windows.
193192
pyro_thread = Thread(target = pyro_daemon.requestLoop)
194193
pyro_thread.daemon = True
195194
pyro_thread.start()

0 commit comments

Comments
 (0)