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:
shatty 2004-02-03 09:43:46 +00:00
parent 46eb57b150
commit 8f975d5e5f
2 changed files with 2 additions and 8 deletions

View File

@ -72,8 +72,6 @@ enum {
MEDIA_SERVER_GET_FORMATS,
MEDIA_SERVER_MAKE_FORMAT_FOR,
MEDIA_SERVER_READY,
};
// Raw port based communication

View File

@ -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: