Fix control+c not working
This commit is contained in:
1 parent
9a715a72b8
commit
9b6a195b6a
2 files changed
+13
-1
No files matched your search
@@ -121,7 +121,12 @@ if __name__ == "__main__":
|
||||
port = 25565
|
||||
connection = NetworkManager.ServerConnection(None, derp['Username'], passwd, sessionid, host, port)
|
||||
connection.start()
|
||||
raw_input()
|
||||
while True:
|
||||
try:
|
||||
raw_input()
|
||||
except KeyboardInterrupt, e:
|
||||
connection.disconnect()
|
||||
sys.exit(1)
|
||||
else:
|
||||
app = wx.PySimpleApp()
|
||||
Login = GUI.MainFrame(None, -1, "")
|
||||
|
||||
Reference in new issue
Block a user