Improved RPC connection cleanup logic

This commit is contained in:
Joseph Henry 2015-10-22 13:20:50 -07:00
commit 2f4628520b
2 changed files with 37 additions and 5 deletions

View file

@ -375,8 +375,7 @@ int socket(SOCKET_SIG)
char cmd[BUF_SZ];
fdret_sock = !is_initialized ? init_service_connection() : fdret_sock;
if(fdret_sock < 0)
{
if(fdret_sock < 0) {
dwr("BAD service connection. exiting.\n");
exit(-1);
}