From 64cdeb2157a2641128dc15e4b60ead0676551399 Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 15:25:31 -0800 Subject: [PATCH] Update server.py --- server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 8f3159f..80e1f74 100644 --- a/server.py +++ b/server.py @@ -41,7 +41,10 @@ def relay(): found = False while True: gemresponse = gemsocket.recv(1) - gemraw.append(gemresponse) + if len(gemresponse) != 0: + gemraw.append(gemresponse[0]) + else: + break try: if num == 0: print(gemresponse)