mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 16:36:52 +01:00
@@ -161,7 +161,7 @@ void BrokerRecvTask::run(void)
|
||||
|
||||
delete packet;
|
||||
|
||||
if ( (rc == -1 || rc == -2) && client->isActive() )
|
||||
if ( (rc == -1 || rc == -2) && ( client->isActive() || client->isSleep() || client->isAwake() ))
|
||||
{
|
||||
/* disconnect the client */
|
||||
packet = new MQTTGWPacket();
|
||||
|
||||
Reference in New Issue
Block a user