Commit 3f251efb authored by Paul Sokolovsky's avatar Paul Sokolovsky

esp8266/modules/webrepl: Enforce only one concurrent WebREPL connection.

Concurrent WebREPL connections were never supported, now actually check
for this.
parent 84679e0c
......@@ -31,6 +31,10 @@ def setup_conn(port, accept_handler):
def accept_conn(listen_sock):
global client_s
cl, remote_addr = listen_sock.accept()
if uos.dupterm():
print("\nConcurrent WebREPL connection from", remote_addr, "rejected")
print("\nWebREPL connection from:", remote_addr)
client_s = cl
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment