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:
@@ -33,6 +33,7 @@
|
|||||||
#include <Path.h>
|
#include <Path.h>
|
||||||
#include <PortLink.h>
|
#include <PortLink.h>
|
||||||
#include <StopWatch.h>
|
#include <StopWatch.h>
|
||||||
|
#include <RosterPrivate.h>
|
||||||
|
|
||||||
#include "BitmapManager.h"
|
#include "BitmapManager.h"
|
||||||
#include "ColorSet.h"
|
#include "ColorSet.h"
|
||||||
@@ -286,13 +287,12 @@ AppServer::LaunchInputServer()
|
|||||||
|
|
||||||
fISThreadID = B_ERROR;
|
fISThreadID = B_ERROR;
|
||||||
|
|
||||||
while (find_thread(BPrivate::kRosterThreadName) == B_NAME_NOT_FOUND && !fQuittingServer) {
|
while (!BRoster::Private().IsMessengerValid(false) && !fQuittingServer) {
|
||||||
snooze(250000);
|
snooze(250000);
|
||||||
|
BRoster::Private::DeleteBeRoster();
|
||||||
|
BRoster::Private::InitBeRoster();
|
||||||
}
|
}
|
||||||
|
|
||||||
// we sleep a bit more
|
|
||||||
snooze(1000000);
|
|
||||||
|
|
||||||
if (fQuittingServer)
|
if (fQuittingServer)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user