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 SIGTERM:
|
||||
// if connected, terminate connection (needed for headless mode)
|
||||
if ( IsRunning() )
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
|
||||
// this should trigger OnAboutToQuit
|
||||
QCoreApplication::instance()->exit();
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue