Skip to content

Commit

Permalink
Fixed CVIdeo::quit being swallowed in invoked_function_data::call
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed May 27, 2018
1 parent aebf9be commit 031f856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/events.cpp
Expand Up @@ -64,6 +64,7 @@ struct invoked_function_data
f();
} catch(const CVideo::quit&) {
// Handle this exception in the main thread.
throw;

This comment has been minimized.

Copy link
@stevecotton

stevecotton Jun 8, 2018

Contributor

I think there should be a finished=true before this throw.

This comment has been minimized.

Copy link
@gfgtdf

gfgtdf Jun 8, 2018

Contributor

Hmm probably, in fact is does not matter much because the main thread just calls exit () when it catches that exception later.

} catch(...) {
thrown_exception = std::current_exception();
}
Expand Down

0 comments on commit 031f856

Please sign in to comment.