Skip to content

Commit

Permalink
Fixup 32c18f6
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 25, 2017
1 parent 3c617e9 commit 0bda42e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/dialogs/loading_screen.cpp
Expand Up @@ -111,7 +111,7 @@ void loading_screen::pre_show(window& window)
if(work_) {
worker_.reset(new boost::thread([this]() {
is_worker_running_ = true;

try {
work_();
} catch(...) {
Expand Down Expand Up @@ -203,10 +203,10 @@ loading_screen::~loading_screen()
* happened because the window was closed, which is not necessarily the case (other
* possibilities might be a 'dialog doesn't fit on screen' exception caused by resizing
* the window).
*
*
* Another approach might be to add exit points (boost::this_thread::interruption_point())
* to the worker functions (filesystem.cpp config parsing code etc. ) and then use that to
* end the thread faster.
* to the worker functions (filesystem.cpp, config parsing code, etc.) and then use that
* to end the thread faster.
*/
if(is_worker_running_) {
#if defined(_MSC_VER) && _MSC_VER <= 1800
Expand Down

0 comments on commit 0bda42e

Please sign in to comment.