reworked registrar launch wait, avoids snoozing
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13193 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
91515d2132
commit
587e093725
@ -33,6 +33,7 @@
|
||||
#include <Path.h>
|
||||
#include <PortLink.h>
|
||||
#include <StopWatch.h>
|
||||
#include <RosterPrivate.h>
|
||||
|
||||
#include "BitmapManager.h"
|
||||
#include "ColorSet.h"
|
||||
@ -286,13 +287,12 @@ AppServer::LaunchInputServer()
|
||||
|
||||
fISThreadID = B_ERROR;
|
||||
|
||||
while (find_thread(BPrivate::kRosterThreadName) == B_NAME_NOT_FOUND && !fQuittingServer) {
|
||||
while (!BRoster::Private().IsMessengerValid(false) && !fQuittingServer) {
|
||||
snooze(250000);
|
||||
BRoster::Private::DeleteBeRoster();
|
||||
BRoster::Private::InitBeRoster();
|
||||
}
|
||||
|
||||
// we sleep a bit more
|
||||
snooze(1000000);
|
||||
|
||||
if (fQuittingServer)
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user