summaryrefslogtreecommitdiff
path: root/src/net/ipc.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-09 00:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-09 00:27:33 +0300
commit2fa941b89177cf91cbbc84700c1d7631aa85bcc2 (patch)
treeebc3464db530afd540a67bb86ea735624841ec32 /src/net/ipc.cpp
parentb4ec726fe28f65b15fd4cc7b0ef6fd72b7d24c02 (diff)
downloadmv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.gz
mv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.bz2
mv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.xz
mv-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.zip
Add some missing checks to other files found by paranucker.
Diffstat (limited to 'src/net/ipc.cpp')
-rw-r--r--src/net/ipc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ipc.cpp b/src/net/ipc.cpp
index e4a70abc8..f82330d04 100644
--- a/src/net/ipc.cpp
+++ b/src/net/ipc.cpp
@@ -93,7 +93,7 @@ int IPC::acceptLoop(void *ptr)
const int max_length = 1024;
const TcpNet::SocketSet set = TcpNet::allocSocketSet(1);
TcpNet::addSocket(set, ipc1->mSocket);
- ipc->mListen = true;
+ ipc1->mListen = true;
while (ipc1->mListen)
{
TcpNet::checkSockets(set, 250);
@@ -141,7 +141,7 @@ int IPC::acceptLoop(void *ptr)
}
TcpNet::closeSocket(ipc1->mSocket);
ipc1->mSocket = nullptr;
- ipc->mThread = nullptr;
+ ipc1->mThread = nullptr;
return 0;
}