Commit 81d5c38b authored by Alex Hultman's avatar Alex Hultman
Browse files

Don't check pthread_self against MASTER loopType

parent a2bae6e7
......@@ -588,7 +588,7 @@ void WebSocket::write(char *data, size_t length, bool transferOwnership, void(*c
socketData->messageQueue.push(messagePtr);
if (wasEmpty) {
if (pthread_self() == socketData->server->es.tid) {
if (socketData->server->es.loopType == MASTER || pthread_self() == socketData->server->es.tid) {
uv_poll_start(p, UV_WRITABLE | UV_READABLE, onWritableReadable);
} else {
socketData->server->es.changePollAsync(p);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment