stop if Process has return 0, meaning that it
closed the connection
This commit is contained in:
parent
b963fd1b25
commit
114264ca13
|
@ -357,6 +357,10 @@ class Dispatcher(PlugIn):
|
||||||
if data is None:
|
if data is None:
|
||||||
return
|
return
|
||||||
res = self.ProcessNonBlocking(data)
|
res = self.ProcessNonBlocking(data)
|
||||||
|
# 0 result indicates that we have closed the connection, e.g.
|
||||||
|
# we have released dispatcher, so self._owner has no methods
|
||||||
|
if not res:
|
||||||
|
return
|
||||||
self._owner.remove_timeout()
|
self._owner.remove_timeout()
|
||||||
if self._expected[self._witid] is None:
|
if self._expected[self._witid] is None:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue