Commit 37a69f51 authored by Guido van Rossum's avatar Guido van Rossum

It still bugged me that the manager method called by the connection

when the connection is closed is called 'close()' when it doesn't
close the manager, but tells the manager that one particular
connection is closed.  Rename it to 'close_conn()'.
parent 0998fa33
......@@ -100,7 +100,7 @@ class StorageServer:
except:
pass
def close(self, conn):
def close_conn(self, conn):
for sid, cl in self.connections.items():
if conn.obj in cl:
cl.remove(conn.obj)
......
......@@ -394,7 +394,7 @@ class ManagedServerConnection(ServerConnection):
def close(self):
self.obj.notifyDisconnected()
self.__super_close()
self.__mgr.close(self)
self.__mgr.close_conn(self)
class ManagedConnection(Connection):
"""A connection that notifies its ConnectionManager of closing.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment