Only wait one second for m65 to terminate in map65 exit

This also  disconnects QProcess  signals so any  abend from  m65 while
closing is silently ignored.
This commit is contained in:
Bill Somerville 2021-07-01 16:48:37 +01:00
parent 525c791a16
commit 243d7d5835
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 2 additions and 2 deletions

View File

@ -952,8 +952,8 @@ void MainWindow::closeEvent (QCloseEvent * e)
proc_m65.setReadChannel (QProcess::StandardError);
proc_m65.readAll ();
// allow time for any decode cycle to finish
if (!proc_m65.waitForFinished ()) proc_m65.kill();
proc_m65.disconnect ();
if (!proc_m65.waitForFinished (1000)) proc_m65.kill();
quitFile.remove();
mem_m65.detach();
if (m_astro_window) m_astro_window->close ();