Commit d363f22955cde97e1f4f14c7e6c6cb8176c318f8
1 parent
3f675762
Treat packets before CONNECT as warning
I have no explanation for it, but it happens (with QMQTT, should it matter).
Showing
1 changed file
with
2 additions
and
1 deletions
mqttpacket.cpp
| ... | ... | @@ -195,7 +195,8 @@ void MqttPacket::handle() |
| 195 | 195 | { |
| 196 | 196 | if (!sender->getAuthenticated()) |
| 197 | 197 | { |
| 198 | - throw ProtocolError("Non-connect packet from non-authenticated client."); | |
| 198 | + logger->logf(LOG_WARNING, "Non-connect packet (%d) from non-authenticated client. Dropping packet.", packetType); | |
| 199 | + return; | |
| 199 | 200 | } |
| 200 | 201 | } |
| 201 | 202 | ... | ... |