Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 06f8876

Browse files
committed
Do not pick up new connections if we stopped listening for new connections in the mean time
1 parent 8492ead commit 06f8876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pugdebug/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __listen(self, socket_server):
8787
connection = PugdebugServerConnection(sock)
8888
is_valid = connection.init_connection()
8989

90-
if is_valid:
90+
if is_valid and self.wait_for_accept:
9191
self.new_connection_established_signal.emit(
9292
connection
9393
)

0 commit comments

Comments
 (0)