Skip to content

Commit

Permalink
[463000] Fix reconnect bug on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Mar 27, 2015
1 parent 35b7299 commit 2aceb70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Broker:

Client library:
- Inflight limits should only apply to outgoing messages. Closes #461620.
- Fix reconnect bug on Windows. Closes #463000.


1.4 - 20150218
Expand Down
2 changes: 1 addition & 1 deletion lib/mosquitto.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ int mosquitto_loop(struct mosquitto *mosq, int timeout, int max_packets)
}
}
}
if(mosq->sockpairR >= 0 && FD_ISSET(mosq->sockpairR, &readfds)){
if(mosq->sockpairR != INVALID_SOCKET && FD_ISSET(mosq->sockpairR, &readfds)){
#ifndef WIN32
if(read(mosq->sockpairR, &pairbuf, 1) == 0){
}
Expand Down

0 comments on commit 2aceb70

Please sign in to comment.