瀏覽代碼

Fix ctrl c

Eren Yilmaz 5 年之前
父節點
當前提交
c3da0ef8b8
共有 1 個文件被更改,包括 1 次插入6 次删除
  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()