Skip to content

Commit

Permalink
Fixes in VM message loop
Browse files Browse the repository at this point in the history
  • Loading branch information
alexp-sssup committed May 27, 2010
1 parent 46e5709 commit 3c332d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion abc.cpp
Expand Up @@ -1326,8 +1326,9 @@ void ABCVm::Run(ABCVm* th)
{
sem_wait(&th->sem_event_count);
if(th->shutdown)
{
bailOut=true;
if(bailOut)
{
//If the queue is empty stop immediately
if(th->events_queue.empty())
break;
Expand All @@ -1340,6 +1341,7 @@ void ABCVm::Run(ABCVm* th)
}
catch(LightsparkException& e)
{
LOG(LOG_ERROR,"Error in VM " << e.cause);
th->m_sys->setError(e.cause);
bailOut=true;
}
Expand Down

0 comments on commit 3c332d3

Please sign in to comment.