From d919e3242f0aab034ecfd1fae17cb69e23421b65 Mon Sep 17 00:00:00 2001 From: Saikat Dey <59501072+saikat2955@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:53:57 +0530 Subject: [PATCH] Update netstat.py on_disconnect function, there's a syntax error. The comparison operator should be != (not equal) instead of <>. --- netstat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netstat.py b/netstat.py index 3571e82..d44154f 100644 --- a/netstat.py +++ b/netstat.py @@ -15,7 +15,7 @@ def on_connect(mosq, obj, rc): def on_disconnect(client, userdata, rc): logging.warning("Disconnected (RC " + str(rc) + ")") - if rc <> 0: + if rc != 0: try_reconnect(client) def on_log(client, userdata, level, buf):