diff --git a/src/MQTTAsyncUtils.c b/src/MQTTAsyncUtils.c index 29117fccc..f8cd51e78 100644 --- a/src/MQTTAsyncUtils.c +++ b/src/MQTTAsyncUtils.c @@ -2320,6 +2320,10 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n) m->c->connected = 0; /* don't send disconnect packet back */ nextOrClose(m, discrc, "Received disconnect"); } + else + { + Log(TRACE_MIN, -1, "An unexpected packet type %u has been received", pack->header.bits.type); + } } } }