Skip to content

Commit

Permalink
Improved timer checking
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Dec 16, 2010
1 parent a31986e commit b44c7b5
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 54 deletions.
2 changes: 2 additions & 0 deletions doc.cpp
Expand Up @@ -1344,6 +1344,8 @@ void CMUSHclientDoc::ReceiveMsg()
char buff [1000];
int count = m_pSocket->Receive (buff, sizeof (buff) - 1);

Frame.CheckTimerFallback (); // see if time is up for timers to fire

if (count == SOCKET_ERROR)
{
// don't delete the socket if we are already closing it
Expand Down

0 comments on commit b44c7b5

Please sign in to comment.