Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
libshell|ServerFinder: Added option to prevent automatic server disco…
…very

IssueID #1695
  • Loading branch information
skyjake committed Jan 1, 2014
1 parent 8f0d1b0 commit cec8329
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doomsday/libshell/src/serverfinder.cpp
Expand Up @@ -21,6 +21,7 @@
#include <de/Reader>
#include <de/TextValue>
#include <de/NumberValue>
#include <de/App>
#include <QMap>
#include <QTimer>

Expand Down Expand Up @@ -86,7 +87,10 @@ ServerFinder::ServerFinder() : d(new Instance)
connect(&d->beacon, SIGNAL(found(de::Address, de::Block)), this, SLOT(found(de::Address, de::Block)));
QTimer::singleShot(1000, this, SLOT(expire()));

d->beacon.discover(0 /* no timeout */, 2);
if(!App::commandLine().has("-nodiscovery"))
{
d->beacon.discover(0 /* no timeout */, 2);
}
}
catch(Beacon::PortError const &er)
{
Expand Down

0 comments on commit cec8329

Please sign in to comment.