private fork
Fork of GSwifiInterface by
Diff: Socket/UDPSocket.cpp
- Revision:
- 12:057089026a20
- Parent:
- 10:7d8134e7df01
diff -r 71d67fea5ace -r 057089026a20 Socket/UDPSocket.cpp --- a/Socket/UDPSocket.cpp Fri Nov 15 04:20:14 2013 +0000 +++ b/Socket/UDPSocket.cpp Fri Nov 22 14:03:07 2013 +0000 @@ -49,7 +49,7 @@ Timer tmr; int idx = 0; - if (_cid < 0 && _wifi->isConnected()) { + if (_cid < 0 && _wifi->isAssociated()) { // Socket open if (_server) { _cid = _wifi->listen(GSwifi::PROTO_UDP, _port); @@ -87,7 +87,7 @@ char ip[16]; int port; - if (_cid < 0 && _wifi->isConnected()) { + if (_cid < 0 && _wifi->isAssociated()) { // Socket open if (_server) { _cid = _wifi->listen(GSwifi::PROTO_UDP, _port);