NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: TCPServer.cpp
- Revision:
- 117:ff83eb6a1ab9
- Parent:
- 116:bc043343d753
- Child:
- 118:96627c4b83d5
--- a/TCPServer.cpp Wed Apr 20 19:20:51 2016 -0500 +++ b/TCPServer.cpp Wed Apr 20 19:48:17 2016 -0500 @@ -61,8 +61,7 @@ } if (err != NSAPI_ERROR_WOULD_BLOCK - || _timeout < 0 - || timer.read_ms() > _timeout) { + || (_timeout >= 0 && timer.read_ms() > _timeout)) { return err; }