1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Fix compilation

This commit is contained in:
nordsoft 2023-01-15 01:02:41 +04:00
parent f765112798
commit 2acad02476
2 changed files with 1 additions and 11 deletions

View File

@ -28,12 +28,6 @@ VCMI_LIB_NAMESPACE_BEGIN
#define LIL_ENDIAN
#endif
struct ConnectionBuffers
{
boost::asio::streambuf readBuffer;
boost::asio::streambuf writeBuffer;
};
void CConnection::init()
{
enableSmartPointerSerialization();
@ -163,7 +157,6 @@ void CConnection::reportState(vstd::CLoggerBase * out)
CPack * CConnection::retrievePack()
{
enableBufferedRead = true;
CPack * pack = nullptr;
iser & pack;
@ -177,7 +170,6 @@ CPack * CConnection::retrievePack()
pack->c = this->shared_from_this();
}
enableBufferedRead = false;
return pack;
}
@ -186,11 +178,9 @@ void CConnection::sendPack(const CPack * pack)
{
logNetwork->trace("Sending a pack of type %s", typeid(*pack).name());
enableBufferedWrite = true;
oser & pack;
flushBuffers();
}
void CConnection::disableStackSendingByID()

View File

@ -172,7 +172,7 @@ void CVCMIServer::run()
#endif
if(!lobbyConnectionsThread)
lobbyConnectionsThread = vstd::make_unique<boost::thread>(&CVCMIServer::startAsyncAccept, this);
lobbyConnectionsThread = std::make_unique<boost::thread>(&CVCMIServer::startAsyncAccept, this);
/*if(!remoteConnectionsThread && cmdLineOptions.count("lobby"))
{