summaryrefslogtreecommitdiffstats
path: root/src/NetworkClient.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-05 17:07:10 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-05 17:07:10 +0200
commitc9c78e191dd71bacd769bbeccd58b80e4376184b (patch)
tree4da1a8500dd73dd6368fc89496dc0f428d318c5b /src/NetworkClient.cpp
parent2017-08-03 (diff)
downloadAltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.gz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.bz2
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.lz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.xz
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.tar.zst
AltCraft-c9c78e191dd71bacd769bbeccd58b80e4376184b.zip
Diffstat (limited to '')
-rw-r--r--src/NetworkClient.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/NetworkClient.cpp b/src/NetworkClient.cpp
index 235251f..d944f54 100644
--- a/src/NetworkClient.cpp
+++ b/src/NetworkClient.cpp
@@ -1,7 +1,7 @@
#include "NetworkClient.hpp"
-NetworkClient::NetworkClient(std::string address, unsigned short port, std::string username, bool &quit)
- : network(address, port), isRunning(quit) {
+NetworkClient::NetworkClient(std::string address, unsigned short port, std::string username)
+ : network(address, port) {
state = Handshaking;
PacketHandshake handshake;
@@ -86,7 +86,6 @@ void NetworkClient::NetworkLoop() {
}
} catch (std::exception &e) {
LOG(ERROR) << "Exception catched in NetworkLoop: " << e.what();
- isRunning = false;
}
LOG(INFO) << "Network thread is stopped";
}