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:
parent
86901205d0
commit
30764e3821
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user