Commit 67eaeba4c6c61be7208e672b1197fa4dda2fc4dd
1 parent
b85024ba
set also the accepted sockets to nonblocking
Showing
2 changed files
with
2 additions
and
1 deletions
... | ... | @@ -64,7 +64,7 @@ connectionNextMessage(void * _this) |
64 | 64 | TR_RemoteData data = TR_queueGet(comm->read_buffer); |
65 | 65 | size_t end; |
66 | 66 | |
67 | - if (NULL == this->current_message || this->current_message->ready) | |
67 | + if (data && (! this->current_message || this->current_message->ready)) | |
68 | 68 | { |
69 | 69 | this->current_message = |
70 | 70 | TR_protoCreateMessage(comm->protocol, data->remote); | ... | ... |
Please
register
or
login
to post a comment