[11001] Fixed crashes in ACE network code.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Thanks to kero99 for pointing to patch and testing.
This commit is contained in:
Derex 2011-01-13 04:21:57 +03:00 committed by VladimirMangos
parent d38539f12a
commit f1283b489d
3 changed files with 4 additions and 1 deletions

View file

@ -261,5 +261,7 @@ void BufferedSocket::close_connection(void)
{
this->peer().close_reader();
this->peer().close_writer();
reactor()->remove_handler(this, ACE_Event_Handler::DONT_CALL | ACE_Event_Handler::ALL_EVENTS_MASK);
}