~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db11df9
)
svc/connect.in (Pinger.kill): Don't assume the peer exists.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 8 Sep 2017 08:04:08 +0000
(09:04 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 14 Jun 2018 09:34:25 +0000
(10:34 +0100)
It's quite possible that it's already gone, so be careful.
svc/connect.in
patch
|
blob
|
blame
|
history
diff --git
a/svc/connect.in
b/svc/connect.in
index
e3a5022
..
feb79ea
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):