gpvigano / M2MqttUnity

M2MQTT for Unity
MIT License
153 stars 59 forks source link

Unable to receive message after reconnection in Unity #12

Closed tpxxn closed 2 years ago

tpxxn commented 2 years ago

Environment

  • version of M2MqttUnity 9a030e5
  • version of Unity3D (e.g. Unity 2020.3.14f1c1)

After disconnecting and reconnecting, the DispatchEventThread method is stuck in this.receiveEventWaitHandle. WaitOne(), Until the server actively disconnects.

tpxxn commented 2 years ago

Solved, the client obtained during publishing is the previous client...