summaryrefslogtreecommitdiff
path: root/src/net/connectionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/connectionhandler.cpp')
-rw-r--r--src/net/connectionhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/connectionhandler.cpp b/src/net/connectionhandler.cpp
index e9ec1944..5aaf90e0 100644
--- a/src/net/connectionhandler.cpp
+++ b/src/net/connectionhandler.cpp
@@ -75,12 +75,12 @@ void ConnectionHandler::stopListen()
currentPeer < &host->peers[host->peerCount];
++currentPeer)
{
- if (currentPeer->state == ENET_PEER_STATE_CONNECTED)
- {
+ if (currentPeer->state == ENET_PEER_STATE_CONNECTED)
+ {
enet_peer_disconnect(currentPeer, 0);
enet_host_flush(host);
enet_peer_reset(currentPeer);
- }
+ }
}
enet_host_destroy(host);
// FIXME: memory leak on NetComputers