finetuning gameplay and disconnect fix

This commit is contained in:
j3d1 2016-10-06 04:42:20 +02:00
parent 654fca9e67
commit a92e7da0f8
2 changed files with 7 additions and 2 deletions

View file

@ -94,7 +94,12 @@ void Session::do_read()
char c[]="> ";
do_write(c,strlen(c));
}
}
}else if ((asio::error::eof == ec) ||
(asio::error::connection_reset == ec))
{
m_state->quitPlayer(m_pid);
}
});
}