fix possible focket fd of -1 in cserve

this fixes CID 1193207 where a server fd may be -1, connect fail and
still be -1 due to failed connect.
This commit is contained in:
Carsten Haitzler 2014-08-14 17:18:57 +09:00
parent c87748a7c1
commit caf2b018a2
1 changed files with 1 additions and 0 deletions

View File

@ -648,6 +648,7 @@ _server_dispatch_until(unsigned int rid)
ERR("Could not reconnect to cserve2!");
return EINA_FALSE;
}
if (socketfd == -1) return EINA_FALSE;
}
//DBG("Waiting for request %d...", rid);