Skip to content

Commit

Permalink
Backported fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.kvirc.de/svn/tags/kvirc/3.4.0@2223 17fca916-40b9-46aa-a4ea-0a15b648b75c
  • Loading branch information
Voker57 committed Aug 10, 2008
1 parent 255745f commit 6faa658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kvilib/net/kvi_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ inline bool kvi_socket_recoverableConnectError(int err)
return ((err == WSAEINPROGRESS) || (err == WSAEWOULDBLOCK));
#else
return (err == EINPROGRESS);
#endif
#endif
};

inline bool kvi_socket_recoverableError(int err)
{
#ifdef COMPILE_ON_WINDOWS
return ((err == WSAEWOULDBLOCK) || (err == EINTR) || (err == EAGAIN));
#else
return ((err == EINTR) || (err = EAGAIN));
return ((err == EINTR) || (err == EAGAIN));
#endif
}

Expand Down

0 comments on commit 6faa658

Please sign in to comment.