Core/Netcode: Fix file descriptor leak under linux platforms with ACE dev poll reactor.

close #15

Signed-off-by: Machiavelli <machiavelli.trinity@gmail.com>
This commit is contained in:
Derex
2011-01-09 13:53:25 +01:00
committed by Machiavelli
parent 4ec6ec66c4
commit 45459bed23
2 changed files with 2 additions and 0 deletions

View File

@@ -246,6 +246,7 @@ int RealmSocket::handle_close(ACE_HANDLE h, ACE_Reactor_Mask)
if (session_)
session_->OnClose();
reactor()->remove_handler(this, ACE_Event_Handler::DONT_CALL | ACE_Event_Handler::ALL_EVENTS_MASK);
return 0;
}

View File

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