Skip to content

Commit

Permalink
ctlmgr: fix the fix (107e2fe)
Browse files Browse the repository at this point in the history
jordens committed Jan 30, 2016
1 parent d05d720 commit 17ac64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/devices/ctlmgr.py
Original file line number Diff line number Diff line change
@@ -41,14 +41,14 @@ async def call(self, method, *args, **kwargs):
try:
targets, _ = remote.get_rpc_id()
remote.select_rpc_target(targets[0])
r = await getattr(remote, method)()
r = await getattr(remote, method)(*args, **kwargs)
finally:
remote.close_rpc()
return r

async def _ping(self):
try:
ok = await asyncio.wait_for(self._call_controller("ping"),
ok = await asyncio.wait_for(self.call("ping"),
self.ping_timeout)
if ok:
self.retry_timer_cur = self.retry_timer

0 comments on commit 17ac64a

Please sign in to comment.