After cancelling the shutdown process applications couldn't be started
anymore. Fixes bug #119. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16291 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3cd6e76965
commit
c8a9444b63
@ -635,6 +635,11 @@ ShutdownProcess::~ShutdownProcess()
|
||||
// remove the application quit watcher
|
||||
fRoster->RemoveWatcher(this);
|
||||
|
||||
// If an error occurred (e.g. the shutdown process was cancelled), the
|
||||
// roster should accept applications again.
|
||||
if (fShutdownError != B_OK)
|
||||
fRoster->SetShuttingDown(false);
|
||||
|
||||
// delete the internal event semaphore
|
||||
if (fInternalEventSemaphore >= 0)
|
||||
delete_sem(fInternalEventSemaphore);
|
||||
|
Loading…
Reference in New Issue
Block a user