Remove unneeded flag check
stop_flag is only set if uv_stop was called, which is never the case, so skipping the test should be harmless.
This commit is contained in:
parent
0da72be8a9
commit
d6ff804b9a
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ void NodeBindings::UvRunOnce() {
|
||||||
|
|
||||||
// Deal with uv events.
|
// Deal with uv events.
|
||||||
int r = uv_run(uv_loop_, UV_RUN_NOWAIT);
|
int r = uv_run(uv_loop_, UV_RUN_NOWAIT);
|
||||||
if (r == 0 || uv_loop_->stop_flag != 0)
|
if (r == 0)
|
||||||
message_loop_->QuitWhenIdle(); // Quit from uv.
|
message_loop_->QuitWhenIdle(); // Quit from uv.
|
||||||
|
|
||||||
// Tell the worker thread to continue polling.
|
// Tell the worker thread to continue polling.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue