ptp connect fix solved #8983 for android with high latency

This commit is contained in:
Ade Novan 2016-10-13 01:21:24 +08:00
parent 6b2f224d84
commit ff0e3c28b4

View File

@ -76,7 +76,7 @@ inline bool connectInProgress(int errcode){ return (errcode == WSAEWOULDBLOCK ||
#define SOCKET_ERROR -1
#define closesocket close
#define PACK __attribute__((packed))
inline bool connectInProgress(int errcode){ return (errcode == EINPROGRESS); }
inline bool connectInProgress(int errcode){ return (errcode == EINPROGRESS || errcode == EALREADY); }
#endif
#ifndef POLL_ERR