diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-28 16:16:05 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-05-28 16:16:05 +0200 |
commit | d93c2073896e63aca5a859fe7182ba24dbe84cd3 (patch) | |
tree | 6144aaf7e01854fe245011ca4f4735974366febb /src/network/NetworkClient.cpp | |
parent | 2017-05-26 (diff) | |
download | AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.gz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.bz2 AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.lz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.xz AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.tar.zst AltCraft-d93c2073896e63aca5a859fe7182ba24dbe84cd3.zip |
Diffstat (limited to '')
-rw-r--r-- | src/network/NetworkClient.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/network/NetworkClient.cpp b/src/network/NetworkClient.cpp index cbe705b..9916b10 100644 --- a/src/network/NetworkClient.cpp +++ b/src/network/NetworkClient.cpp @@ -1,7 +1,4 @@ #include "NetworkClient.hpp" -#include "../packet/PacketParser.hpp" -#include "../packet/PacketBuilder.hpp" -#include <nlohmann/json.hpp> ServerInfo NetworkClient::ServerPing(std::string address, unsigned short port) { ServerInfo info; @@ -62,8 +59,10 @@ NetworkClient::NetworkClient(std::string address, unsigned short port, std::stri } NetworkClient::~NetworkClient() { + LOG(INFO)<<"NC stopping..."; isContinue=false; m_networkThread.join(); + LOG(INFO)<<"NC is stopped"; } Packet * NetworkClient::GetPacket() { @@ -101,7 +100,7 @@ void NetworkClient::MainLoop() { Update(); } } catch (int e){ - std::cerr<<"NetworkClient exception: "<<e<<std::endl; + LOG(ERROR)<<"Catched exception in NC: "<<e; } } |