From 6e529c4bc707aa0fcf8410447fdf63eae3cbb2c9 Mon Sep 17 00:00:00 2001 From: t Date: Sat, 21 Oct 2023 18:18:12 +0300 Subject: [PATCH] More stability. --- list.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/list.py b/list.py index a2628e1..9d28829 100644 --- a/list.py +++ b/list.py @@ -126,8 +126,13 @@ def client(): client_socket.close() if mode == 0: - print('To start own server change python file.\n') - client() + print('To start own server change python file.\n') + client() else: - server() - + while True: + try: + server() + except KeyboardInterrupt: + exit() + except: + pass