axel points out that the message loop is already started by the time we get to ReadyToRun, so we can start our friends there
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6485 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
46eb57b150
commit
8f975d5e5f
@ -72,8 +72,6 @@ enum {
|
||||
|
||||
MEDIA_SERVER_GET_FORMATS,
|
||||
MEDIA_SERVER_MAKE_FORMAT_FOR,
|
||||
|
||||
MEDIA_SERVER_READY,
|
||||
};
|
||||
|
||||
// Raw port based communication
|
||||
|
@ -141,7 +141,8 @@ ServerApp::ServerApp()
|
||||
|
||||
void ServerApp::ReadyToRun()
|
||||
{
|
||||
be_app_messenger.SendMessage(MEDIA_SERVER_READY);
|
||||
gAppManager->StartAddonServer();
|
||||
gAddOnManager->LoadState();
|
||||
}
|
||||
|
||||
ServerApp::~ServerApp()
|
||||
@ -732,11 +733,6 @@ ServerApp::MessageReceived(BMessage *msg)
|
||||
{
|
||||
TRACE("ServerApp::MessageReceived %lx enter\n", msg->what);
|
||||
switch (msg->what) {
|
||||
case MEDIA_SERVER_READY:
|
||||
gAppManager->StartAddonServer();
|
||||
gAddOnManager->LoadState();
|
||||
break;
|
||||
|
||||
case MEDIA_SERVER_REQUEST_NOTIFICATIONS:
|
||||
case MEDIA_SERVER_CANCEL_NOTIFICATIONS:
|
||||
case MEDIA_SERVER_SEND_NOTIFICATIONS:
|
||||
|
Loading…
Reference in New Issue
Block a user