[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

@ -445,6 +445,7 @@ int WorldSocket::handle_close (ACE_HANDLE h, ACE_Reactor_Mask)
m_Session = NULL; m_Session = NULL;
} }
reactor()->remove_handler(this, ACE_Event_Handler::DONT_CALL | ACE_Event_Handler::ALL_EVENTS_MASK);
return 0; return 0;
} }

View file

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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11000" #define REVISION_NR "11001"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__