Skip to content

Commit

Permalink
Merge pull request knolleary#96 from ElvisTheKing/patch-1
Browse files Browse the repository at this point in the history
correct handling of dns fauilure
  • Loading branch information
knolleary committed Jan 31, 2016
2 parents 83b69a7 + 830f34c commit 36bb1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PubSubClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36bb1ff

Please sign in to comment.