From f49a7a95c77cc7267f048919ddab00f7ddc9c3fb Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 30 Nov 2006 18:13:46 -0700 Subject: [PATCH] fix losing-client-connection handler --- allmydata/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/allmydata/client.py b/allmydata/client.py index 908a2e31..44f65d56 100644 --- a/allmydata/client.py +++ b/allmydata/client.py @@ -88,6 +88,7 @@ class Client(service.MultiService, Referenceable): if nodeid not in self.connections: d = self.tub.getReference(pburl) def _got_reference(ref): + log.msg("connected to %s" % nodeid) if nodeid in self.all_peers: self.connections[nodeid] = ref d.addCallback(_got_reference) @@ -96,7 +97,7 @@ class Client(service.MultiService, Referenceable): for nodeid in lost_peers: log.msg("lost peer %s" % nodeid) if nodeid in self.all_peers: - del self.all_peers[nodeid] + self.all_peers.remove(nodeid) else: log.msg("weird, I didn't have an entry for them") if nodeid in self.connections: -- 2.45.2