summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/tmwa/network.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp
index a843c9b6b..175713d49 100644
--- a/src/net/tmwa/network.cpp
+++ b/src/net/tmwa/network.cpp
@@ -138,10 +138,11 @@ void Network::clearHandlers()
void Network::dispatchMessages()
{
- BLOCK_START("Network::dispatchMessages")
+ BLOCK_START("Network::dispatchMessages 1")
while (messageReady())
{
SDL_mutexP(mMutex);
+ BLOCK_START("Network::dispatchMessages 2")
const int msgId = readWord(0);
int len;
if (msgId == SMSG_SERVER_VERSION_RESPONSE)
@@ -156,6 +157,8 @@ void Network::dispatchMessages()
MessageIn msg(mInBuffer, len);
SDL_mutexV(mMutex);
+ BLOCK_END("Network::dispatchMessages 2")
+ BLOCK_START("Network::dispatchMessages 3")
if (len == 0)
{
@@ -175,8 +178,9 @@ void Network::dispatchMessages()
}
skip(len);
+ BLOCK_END("Network::dispatchMessages 3")
}
- BLOCK_END("Network::dispatchMessages")
+ BLOCK_END("Network::dispatchMessages 1")
}
bool Network::messageReady()