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

Commit d399ff7

Browse files
committed
use the is_connected method to check if there is an active connection
1 parent 4c170d9 commit d399ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pugdebug/debugger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def handle_server_connected(self, connection):
134134

135135
self.connections.append(connection)
136136

137-
if self.current_connection is None:
137+
if not self.is_connected():
138138
self.start_new_connection()
139139

140140
def start_new_connection(self):

0 commit comments

Comments
 (0)