summaryrefslogtreecommitdiffstats
path: root/src/madc.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-21 22:38:30 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-21 22:38:30 +0200
commite0e254548b6200d16bc3f4be3bd255b041a76532 (patch)
tree5665e3e5f3a54f63495f8f671fe911013a854ba5 /src/madc.cpp
parent02f8f9fe5ff81d5723bcbffef5a8dcc4e2adb156 (diff)
downloadmad-e0e254548b6200d16bc3f4be3bd255b041a76532.tar
mad-e0e254548b6200d16bc3f4be3bd255b041a76532.zip
InformationManager Thread-safe gemacht
Diffstat (limited to 'src/madc.cpp')
-rw-r--r--src/madc.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/madc.cpp b/src/madc.cpp
index 8499232..fd6b547 100644
--- a/src/madc.cpp
+++ b/src/madc.cpp
@@ -87,9 +87,7 @@ int main(int argc, char *argv[]) {
std::cerr << "Receiving host list..." << std::flush;
Client::InformationManager::get()->updateDaemonList(connection);
-
- while(Client::InformationManager::get()->isUpdating())
- usleep(100000);
+ Client::InformationManager::get()->waitWhileUpdating();
std::cerr << " done." << std::endl << std::endl;