mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
went through the rest of cppcheck warnings, mostly harmless
This commit is contained in:
@ -136,20 +136,17 @@ void CClient::run()
|
||||
setThreadName("CClient::run");
|
||||
try
|
||||
{
|
||||
CPack *pack = nullptr;
|
||||
while(!terminate)
|
||||
{
|
||||
pack = serv->retreivePack(); //get the package from the server
|
||||
CPack *pack = serv->retreivePack(); //get the package from the server
|
||||
|
||||
if (terminate)
|
||||
{
|
||||
delete pack;
|
||||
pack = nullptr;
|
||||
vstd::clear_pointer(pack);
|
||||
break;
|
||||
}
|
||||
|
||||
handlePack(pack);
|
||||
pack = nullptr;
|
||||
}
|
||||
}
|
||||
//catch only asio exceptions
|
||||
|
Reference in New Issue
Block a user