Commit ccb39da8 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

motion: simplify the task wrapper.

why do we need to have complex task decorator?
parent d4a04301
......@@ -760,7 +760,7 @@ class Axis(object):
def _start_move_task(self, funct, *args, **kws):
start_event = gevent.event.Event()
def sync_funct(*args, **kws):
return funct(*args, **kws)
......@@ -115,7 +115,7 @@ class _Group(object):
positions_dict[axis] = axis.dial()
return positions_dict
def _handle_move(self, motions, polling_time):
with error_cleanup(self._do_stop):
for motion in motions:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment