Avoid closing the connection twice

If there's a network problem the connection has been already closed in
the relevant socket read/write functions.
This commit is contained in:
Lefteris Chatzimparmpas 2012-02-21 00:23:32 +01:00
parent f78ed3c3d7
commit 6a1771da04

View File

@ -253,7 +253,6 @@ request_login(session **ssnptr, const char *server, const char *port, const
return r;
fail:
close_connection(ssn);
session_destroy(ssn);
return -1;