[Zodb-checkins] CVS: ZEO/ZEO/zrpc - connection.py:1.11

Jeremy Hylton jeremy@zope.com
Thu, 29 Aug 2002 17:35:43 -0400


Update of /cvs-repository/ZEO/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv15669/zrpc

Modified Files:
	connection.py 
Log Message:
Call notifyDisconnected() on the object handled by a Connection.


=== ZEO/ZEO/zrpc/connection.py 1.10 => 1.11 ===
--- ZEO/ZEO/zrpc/connection.py:1.10	Fri Aug 23 15:32:37 2002
+++ ZEO/ZEO/zrpc/connection.py	Thu Aug 29 17:35:41 2002
@@ -389,9 +389,10 @@
     def __init__(self, sock, addr, obj, mgr):
         self.__mgr = mgr
         self.__super_init(sock, addr, obj)
-        obj.notifyConnected(self)
+        self.obj.notifyConnected(self)
 
     def close(self):
+        self.obj.notifyDisconnected()
         self.__super_close()
         self.__mgr.close(self)