fixed a signal handling bug in QSE::App

This commit is contained in:
hyung-hwan 2019-11-12 07:08:24 +00:00
parent 4ee4169619
commit ae997bb477

View File

@ -422,7 +422,7 @@ int App::set_signal_subscription_no_mutex (int sig, SignalState reqstate, bool i
App* xapp_xprev = QSE_NULL;
g_app_sig[sig] = this;
sl._state = SIGNAL_ACCEPTED;
sl._state = reqstate;
sl._next = xapp;
if (xapp)
{
@ -449,7 +449,7 @@ int App::set_signal_subscription_no_mutex (int sig, SignalState reqstate, bool i
}
else
{
// accpeted/ignored -> ignored/accepted
// accpeted->discarded or discarded->accepted
QSE_ASSERT (g_app_sig[sig] != QSE_NULL);
sl._state = reqstate;
}