This commit is contained in:
parent
9ef92d74de
commit
f5b81673c7
1 changed files with 6 additions and 1 deletions
|
|
@ -69,7 +69,12 @@ namespace Server.Network
|
|||
ThreadPool.QueueUserWorkItem( delegate { Accept_Start(); } );
|
||||
#else
|
||||
m_OnAccept = new AsyncCallback( OnAccept );
|
||||
IAsyncResult res = m_Listener.BeginAccept( m_OnAccept, m_Listener );
|
||||
try {
|
||||
IAsyncResult res = m_Listener.BeginAccept( m_OnAccept, m_Listener );
|
||||
} catch ( SocketException ex ) {
|
||||
NetState.TraceException( ex );
|
||||
} catch ( ObjectDisposedException ) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue