network/socket.cpp: Fix high CPU usage while not in standby
authorMike Looijmans <milo-software@users.sourceforge.net>
Fri, 22 May 2015 18:11:51 +0000 (20:11 +0200)
committerMike Looijmans <milo-software@users.sourceforge.net>
Fri, 22 May 2015 18:26:21 +0000 (20:26 +0200)
commitb7366e386492e08dbd64f3863166408d33f17bbe
tree9bc37d47484c9dff777432cbd4d3789358d7a3fd
parent689036e03a7e460bbaddfc57fa77d6f5bcac67a8
network/socket.cpp: Fix high CPU usage while not in standby

The connect method could end up in an "Idle" state with the notifier
still active. The socket would activate but nothing handling it would
read or write it, hence causing a loop.

Fix by calling "close" when connect() fails to reset the socket.
lib/network/socket.cpp