fix for headless client operation when terminated via SIGNAL
This commit is contained in:
parent
897646d128
commit
cf7d297663
1 changed files with 6 additions and 0 deletions
|
@ -665,6 +665,12 @@ void CClient::OnHandledSignal ( int sigNum )
|
||||||
{
|
{
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
case SIGTERM:
|
case SIGTERM:
|
||||||
|
// if connected, terminate connection (needed for headless mode)
|
||||||
|
if ( IsRunning() )
|
||||||
|
{
|
||||||
|
Stop();
|
||||||
|
}
|
||||||
|
|
||||||
// this should trigger OnAboutToQuit
|
// this should trigger OnAboutToQuit
|
||||||
QCoreApplication::instance()->exit();
|
QCoreApplication::instance()->exit();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue