Skip to content

Commit

Permalink
fix: lost quiting flag for webview thread
Browse files Browse the repository at this point in the history
  • Loading branch information
summeroff committed Nov 27, 2018
1 parent 3aadb40 commit acdf714
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sl_web_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,13 @@ DWORD WINAPI web_views_thread_func(void* data)
case WM_WEBVIEW_CLOSE_THREAD: {
std::cout << "WEBVIEW: WM_WEBVIEW_CLOSE_THREAD" << std::endl;
if (quiting == false) {
quiting = true;
//destroy all windows without notifying overlay thread
//todo but windows will be closed by
if (web_views.size() == 0) {
PostQuitMessage(0);
}
}
}
} break;
};

Expand Down

0 comments on commit acdf714

Please sign in to comment.