Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix locking of removeServer
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
server.py
|
@@ -274,7 +274,7 @@ def get(self, ip, port): |
|
|
return server |
|
|
|
|
|
def removeServer(self, server): |
|
|
with lock: |
|
|
with self.lock: |
|
|
try: |
|
|
self.list.remove(server) |
|
|
except: |
|
|