BMediaRoster: Wait with more calm for services to be up.
* Needed to avoid the app restarting things too fast. This is a problem that should be solved, added a TODO.
This commit is contained in:
@@ -3377,6 +3377,11 @@ BMediaRoster::MessageReceived(BMessage* message)
|
||||
// Send the notification to our subscribers
|
||||
if (BMediaRoster::IsRunning()) {
|
||||
sServerIsUp = true;
|
||||
// Wait for media services to wake up
|
||||
// TODO: This should be solved so that the server
|
||||
// have a way to notify us when the system is really
|
||||
// ready to run and we avoid sleeping.
|
||||
snooze(2000000);
|
||||
// Restore our friendship with the media servers
|
||||
if (MediaRosterEx(this)->BuildConnections() != B_OK) {
|
||||
TRACE("BMediaRoster::MessageReceived can't reconnect"
|
||||
|
||||
Reference in New Issue
Block a user