Fix in segfault 2

This commit is contained in:
Thulinma 2010-08-11 00:17:07 +02:00
parent aca43c48b1
commit a34a9b69cc

View file

@ -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