Skip to content

Commit

Permalink
avoid calling PollManager::shutdown() repeatedly (fix #217)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas committed May 20, 2013
1 parent dc8b8ae commit 6e928b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libros/poll_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ void PollManager::start()

void PollManager::shutdown()
{
if (shutting_down_) return;

shutting_down_ = true;
if (thread_.get_id() != boost::this_thread::get_id())
{
Expand Down

0 comments on commit 6e928b0

Please sign in to comment.