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)