Browse Source

Correct JackRestartThreadedDriver::Execute

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2437 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 17 years ago
parent
commit
44c27c7dd6
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      common/JackThreadedDriver.cpp

+ 11
- 4
common/JackThreadedDriver.cpp View File

@@ -124,14 +124,21 @@ bool JackRestartThreadedDriver::Execute()
while (fThread.GetStatus() == JackThread::kRunning) {
Process();
}
return false;
} catch (JackDriverException e) {
e.PrintMessage();
jack_log("Driver is restarted");
fThread.SetStatus(JackThread::kIniting);
fThread.DropRealTime();
return Init();
// Thread in kIniting status again...
fThread.SetStatus(JackThread::kIniting);
if (Init()) {
// Thread in kRunning status again...
fThread.SetStatus(JackThread::kRunning);
return true;
} else {
return false;
}
}
return false;
}
}

} // end of namespace

Loading…
Cancel
Save