fixed a signal handling bug in QSE::App
This commit is contained in:
parent
4ee4169619
commit
ae997bb477
@ -422,7 +422,7 @@ int App::set_signal_subscription_no_mutex (int sig, SignalState reqstate, bool i
|
|||||||
App* xapp_xprev = QSE_NULL;
|
App* xapp_xprev = QSE_NULL;
|
||||||
|
|
||||||
g_app_sig[sig] = this;
|
g_app_sig[sig] = this;
|
||||||
sl._state = SIGNAL_ACCEPTED;
|
sl._state = reqstate;
|
||||||
sl._next = xapp;
|
sl._next = xapp;
|
||||||
if (xapp)
|
if (xapp)
|
||||||
{
|
{
|
||||||
@ -449,7 +449,7 @@ int App::set_signal_subscription_no_mutex (int sig, SignalState reqstate, bool i
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// accpeted/ignored -> ignored/accepted
|
// accpeted->discarded or discarded->accepted
|
||||||
QSE_ASSERT (g_app_sig[sig] != QSE_NULL);
|
QSE_ASSERT (g_app_sig[sig] != QSE_NULL);
|
||||||
sl._state = reqstate;
|
sl._state = reqstate;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user