[svn r57544] still notify callbacks if we can't send to the other side anymore.

--HG--
branch : trunk
This commit is contained in:
hpk 2008-08-21 14:00:08 +02:00
parent a999dc8472
commit 9b81b15b74
1 changed files with 7 additions and 1 deletions

View File

@ -136,8 +136,14 @@ class Gateway(object):
self._traceex(exc_info())
break
finally:
# XXX we need to signal fatal error states to
# channels/callbacks, particularly ones
# where the other side just died.
self._stopexec()
self._stopsend()
try:
self._stopsend()
except IOError:
self._trace('IOError on _stopsend()')
self._channelfactory._finished_receiving()
self._trace('leaving %r' % threading.currentThread())