chiark
/
gitweb
/
~mdw
/
tripe
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
svc/connect.in (Pinger.kill): Don't assume the peer exists.
[tripe]
/
svc
/
connect.in
diff --git
a/svc/connect.in
b/svc/connect.in
index e3a5022331c1f1eaa8c4f880dc238c90a31ea433..feb79ea8ef005e155b67037cc02d090592331c6d 100644
(file)
--- a/
svc/connect.in
+++ b/
svc/connect.in
@@
-528,7
+528,8
@@
class Pinger (T.Coroutine):
def kill(me, peername):
"""Remove PEER from the peers being watched by the Pinger."""
- del me._peers[peername]
+ try: del me._peers[peername]
+ except KeyError: pass
return me
def rescan(me, startup):