Fixed (?) stack overflow in console code.
I've commented the loop out that was causing the infinite recursion. Not sure why the code was there, I thought it had to do with sluggish console. I don't see that though with the code removed, so let's hope this is sufficient. That would be easy...
This commit is contained in:
@@ -112,10 +112,10 @@ void Console_c::SendFromQueue() {
|
||||
boost::asio::buffer(Head.mData),
|
||||
boost::bind(&Console_c::WriteHandler, this, boost::asio::placeholders::error)
|
||||
);
|
||||
for (int i = 0; i < 100; ++i) {
|
||||
mIoService.reset();
|
||||
mIoService.poll();
|
||||
}
|
||||
//for (int i = 0; i < 100; ++i) {
|
||||
// mIoService.reset();
|
||||
// mIoService.poll();
|
||||
//}
|
||||
}
|
||||
catch (boost::system::system_error &) {
|
||||
CloseSocket();
|
||||
|
||||
Reference in New Issue
Block a user