API: calling remote methods in 'sync' mode no longer returns future on timeout
When calling a function with callSync='sync', the assumption is that we either block until the result arrives or raise an exception if no result arrives. Previously, a timeout woud cause the Future object to be returned instead.
This commit is contained in:
parent
2a70fd9932
commit
16781636bf
@ -466,10 +466,7 @@ class RemoteEventHandler(object):
|
||||
return req
|
||||
|
||||
if callSync == 'sync':
|
||||
try:
|
||||
return req.result()
|
||||
except NoResultError:
|
||||
return req
|
||||
|
||||
def close(self, callSync='off', noCleanup=False, **kwds):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user