summaryrefslogtreecommitdiff
path: root/src/net/ea/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-18 17:22:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-19 15:12:21 +0300
commit672cf3cd97259daf2bc2b68ba433c6a4788feb6a (patch)
tree3955f00bb270f644120d94866a18208c73948bed /src/net/ea/network.cpp
parentfce4ca750fbd4a289e38aa3a96c0ab872947e8b3 (diff)
downloadplus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.tar.gz
plus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.tar.bz2
plus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.tar.xz
plus-672cf3cd97259daf2bc2b68ba433c6a4788feb6a.zip
add missing break in network.
also fix function pointer.
Diffstat (limited to 'src/net/ea/network.cpp')
-rw-r--r--src/net/ea/network.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/ea/network.cpp b/src/net/ea/network.cpp
index ab76fd220..7c2963671 100644
--- a/src/net/ea/network.cpp
+++ b/src/net/ea/network.cpp
@@ -113,7 +113,7 @@ bool Network::connect(ServerInfo server)
mToSkip = 0;
mState = CONNECTING;
- mWorkerThread = SDL::createThread(networkThread, "network", this);
+ mWorkerThread = SDL::createThread(&networkThread, "network", this);
if (!mWorkerThread)
{
setError("Unable to create network worker thread");
@@ -249,6 +249,7 @@ void Network::receive()
{
case -1:
logger->log1("Error: TcpNet::checkSockets");
+ break;
// FALLTHROUGH
case 0:
break;