Skip to content

Commit

Permalink
fix undefined object server in signal_handler()
Browse files Browse the repository at this point in the history
  • Loading branch information
CONSULitAS committed Feb 6, 2025
1 parent 3c86984 commit 332eec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Polestar_2_MQTT.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def main():
# signal handler for SIGTERM
def signal_handler(sig, frame):
print("SIGTERM received: stop run")
server.shutdown()
#server.shutdown() # server is undefined - reason unclear
client.disconnect()
if (OPENWB_PUBLISH):
client_openwb.disconnect()
Expand Down

0 comments on commit 332eec0

Please sign in to comment.