only remove one peer

This commit is contained in:
j 2017-05-30 22:56:07 +02:00
parent 66989a78e5
commit 04f994d4b7
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ class Peer(object):
elif action == 'removepeer':
peerid = args[0]
if peerid in self.info['peers']:
del self.info['peers']
del self.info['peers'][peerid]
# trigger peer update
elif action == 'editusername':
self.info['username'] = args[0]