diff --git a/kitsune/wifi_cmd.c b/kitsune/wifi_cmd.c index 35e4e4b3..cdf9949c 100644 --- a/kitsune/wifi_cmd.c +++ b/kitsune/wifi_cmd.c @@ -1164,7 +1164,7 @@ int start_connection(int * sock, char * host, security_type sec) { //connect it up //LOGI("Connecting \n\r\n\r"); - if (*sock > 0 && sock_begin < 0) { + if (*sock >= 0 && sock_begin < 0) { LOGI("connecting sock %d %d\n", *sock, sock_begin); tv.tv_sec = 2; // Seconds