Skip to content

Commit

Permalink
Fix battleConnectionLost
Browse files Browse the repository at this point in the history
  • Loading branch information
CrystalMoogle committed Jan 24, 2015
1 parent 0207619 commit 5d4fe7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void Server::start(){
myengine->init();
myengine->serverStartUp();

connect(battles, SIGNAL(battleConnectionLost()), myengine, SLOT(battleConnectionLost()));
connect(battles, SIGNAL(battleConnectionLost()), this, SLOT(battleConnectionLost()));

this->showLogMessages = s.value("GUI/ShowLogMessages").toBool();

Expand Down Expand Up @@ -1984,6 +1984,10 @@ void Server::atServerShutDown() {
RelayManager::destroy();
}

void Server::battleConnectionLost() {
myengine->battleConnectionLost();
}

void Server::setAnnouncement(int &id, const QString &html) {
if (player(id)->isLoggedIn())
player(id)->relay().notify(NetworkServ::Announcement, html);;
Expand Down
1 change: 1 addition & 0 deletions src/Server/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public slots:
void updateRatings();

void atServerShutDown();
void battleConnectionLost();
private:
void kick(int dest, int src);
void ban(int dest, int src);
Expand Down

0 comments on commit 5d4fe7c

Please sign in to comment.