From a34a9b69cce40d0d6476be65ee86b7ec69983429 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 11 Aug 2010 00:17:07 +0200 Subject: [PATCH] Fix in segfault 2 --- Server/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/main.cpp b/Server/main.cpp index 7af53a85..f037de3b 100644 --- a/Server/main.cpp +++ b/Server/main.cpp @@ -73,7 +73,7 @@ int main( int argc, char * argv[] ) { ringbuf[current_buffer]->number = loopcount; //send all connections what they need, if and when they need it for (connIt = connectionList.begin(); connIt != connectionList.end(); connIt++){ - if (!(*connIt).is_connected){connectionList.erase(connIt);} + if (!(*connIt).is_connected){connectionList.erase(connIt);break;} (*connIt).Send(ringbuf, buffers); } //keep track of buffers