launch_daemon: Fixed getting data of stopped service

* If you stopped a service, and ran it manually, it would hang forever
  waiting for its port data.
This commit is contained in:
Axel Dörfler 2018-04-25 22:54:21 +02:00
parent 86901205d0
commit 30764e3821

View File

@ -462,6 +462,9 @@ Job::HandleGetLaunchData(BMessage* message)
if (IsLaunched())
return _SendLaunchDataReply(message);
if (!IsEnabled())
return B_NOT_ALLOWED;
return fPendingLaunchDataReplies.AddItem(message) ? B_OK : B_NO_MEMORY;
}