Mixer: Don't hang when terminated while modal window is open.

This commit is contained in:
Jonathan Moore Liles 2013-04-14 15:10:57 -07:00
parent 851be29d6a
commit b4d811adf1
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,6 @@ void
sigterm_handler ( int )
{
got_sigterm = 1;
Fl::awake();
}
void
@ -120,6 +119,7 @@ check_sigterm ( void * )
MESSAGE( "Got SIGTERM, quitting..." );
mixer->quit();
}
Fl::repeat_timeout( 0.1f, check_sigterm );
}
@ -293,7 +293,7 @@ main ( int argc, char **argv )
}
}
Fl::add_check( check_sigterm );
Fl::add_timeout( 0.1f, check_sigterm );
if ( ! no_ui )
{