mirror of
https://github.com/knolleary/pubsubclient.git
synced 2026-10-26 22:11:30 +00:00
Merge pull request #96 from ElvisTheKing/patch-1
correct handling of dns fauilure
This commit is contained in:
commit
36bb1ffa6a
1 file changed
+1
-1
@@ -122,7 +122,7 @@ boolean PubSubClient::connect(const char *id, const char *user, const char *pass
|
||||
} else {
|
||||
result = _client->connect(this->ip, this->port);
|
||||
}
|
||||
if (result) {
|
||||
if (result == 1) {
|
||||
nextMsgId = 1;
|
||||
// Leave room in the buffer for header and variable length field
|
||||
uint16_t length = 5;
|
||||
|
||||
Reference in new issue
Block a user