1
0
mirror of synced 2026-02-01 21:51:56 +00:00

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:
Andras Tantos
2021-03-13 03:53:56 +00:00
parent 7991cfd770
commit 031832222d

View File

@@ -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();