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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user