diff options
Diffstat (limited to 'vchat-protocol.c')
-rwxr-xr-x | vchat-protocol.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/vchat-protocol.c b/vchat-protocol.c index 88631ef..f1b71a1 100755 --- a/vchat-protocol.c +++ b/vchat-protocol.c | |||
@@ -192,9 +192,12 @@ vcconnect (char *server, char *port) | |||
192 | /* disconnect from server */ | 192 | /* disconnect from server */ |
193 | void | 193 | void |
194 | vcdisconnect () { | 194 | vcdisconnect () { |
195 | if (server_conn) | 195 | BIO_free_all( server_conn ); |
196 | BIO_free_all( server_conn ); | 196 | server_conn = 0; |
197 | serverfd = -1; | 197 | if (serverfd>0) { |
198 | close(serverfd); | ||
199 | serverfd = -1; | ||
200 | } | ||
198 | } | 201 | } |
199 | 202 | ||
200 | /* handle a pm not sent error | 203 | /* handle a pm not sent error |