stop if Process has return 0, meaning that it

closed the connection
This commit is contained in:
Dimitur Kirov 2006-03-29 23:33:17 +00:00
parent b963fd1b25
commit 114264ca13
1 changed files with 4 additions and 0 deletions

View File

@ -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