mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-07 07:14:10 +00:00
fix some not defined warnings
This commit is contained in:
parent
bb1a7f21f9
commit
543719a917
2 changed files with 17 additions and 7 deletions
|
|
@ -68,6 +68,9 @@ if not bwConfig.loadConfigFile(paths.CONFIG_PATH + args.config):
|
|||
exit(1)
|
||||
|
||||
# ========== CLIENT CODE ==========
|
||||
mmThread = None
|
||||
bwClient = None
|
||||
|
||||
try:
|
||||
ip = bwConfig.get("server", "ip", default="127.0.0.1")
|
||||
port = bwConfig.get("server", "port", default="8080")
|
||||
|
|
@ -198,7 +201,9 @@ except: # pragma: no cover
|
|||
logging.exception("BOSWatch interrupted by an error")
|
||||
finally:
|
||||
logging.debug("Starting shutdown routine")
|
||||
bwClient.disconnect()
|
||||
if bwClient:
|
||||
bwClient.disconnect()
|
||||
inputThreadRunning = False
|
||||
mmThread.join()
|
||||
if mmThread:
|
||||
mmThread.join()
|
||||
logging.debug("BOSWatch client has stopped ...")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue