Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
linomp authored Mar 27, 2024
1 parent a2ab086 commit f131004
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mvp/server/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ class MqttClient:
__client__: paho.Client = None

def __init__(self):

# TODO refactor this dirty hack!!
if MQTT_USER is None:
return

client = paho.Client(client_id="pdmgame_server", userdata=None, protocol=paho.MQTTv5,
callback_api_version=CallbackAPIVersion.VERSION2)
client.on_connect = on_connect
Expand Down

0 comments on commit f131004

Please sign in to comment.