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):