Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/packet_mosq.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ int packet__queue(struct mosquitto *mosq, struct mosquitto__packet *packet)

/* Write a single byte to sockpairW (connected to sockpairR) to break out
* of select() if in threaded mode. */
if(mosq->sockpairW != INVALID_SOCKET){
if(mosq->threaded == mosq_ts_self && mosq->sockpairW != INVALID_SOCKET){
#ifndef WIN32
if(write(mosq->sockpairW, &sockpair_data, 1)){
}
Expand Down