Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jochen Bauer
uWebSockets
Commits
81d5c38b
Commit
81d5c38b
authored
Aug 22, 2016
by
Alex Hultman
Browse files
Don't check pthread_self against MASTER loopType
parent
a2bae6e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/WebSocket.cpp
View file @
81d5c38b
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment