Fix a bug introduced in c84b413f58

This commit is contained in:
Vadim Ushakov 2021-03-31 11:16:06 +07:00
parent adaeedf4d8
commit 5d6fe6a631

View file

@ -193,7 +193,7 @@ class ConnectionServer(object):
connection.close("Close all connections")
def handleIncomingConnection(self, sock, addr):
if self.allowsAcceptingConnections():
if not self.allowsAcceptingConnections():
sock.close()
return False