Browse Source

Fix ctrl c

Eren Yilmaz 6 năm trước cách đây
mục cha
commit
c3da0ef8b8
1 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 6
      run_client.py

+ 1 - 6
run_client.py

@@ -79,7 +79,7 @@ def one_command():
         cmd = input('*> ').strip()
     except KeyboardInterrupt:
         if yn_dialog('Do you want to exit Orderer?'):
-            exit_client()
+            print('Then type in `exit` :P')
             return
         else:
             return
@@ -108,11 +108,6 @@ def one_command():
                 print('An unknown error occurred while executing a command.')
 
 
-def exit_client():
-    global exiting
-    exiting = True
-
-
 if __name__ == '__main__':
     load()
     welcome()