Browse Source

exit quietly when user hits ctrl+C

1.4
behrooz shabani (everplays) 12 years ago
parent
commit
b71a3e2a0b
  1. 3
      local.py

3
local.py

@ -190,4 +190,7 @@ if __name__ == '__main__':
server.serve_forever()
except socket.error, e:
logging.error(e)
except KeyboardInterrupt:
server.shutdown()
sys.exit(0)

Loading…
Cancel
Save