diff libfaim/aim_conn.c @ 445:e4c34ca88d9b

[gaim-migrate @ 455] Hehehehehe Libfaim got updated, gaim got updated. btw, gaim/faim can't sign in yet, don't ask me why. it's not my fault. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 29 Jun 2000 20:40:28 +0000
parents 9d258a0aa560
children 525c566741da
line wrap: on
line diff
--- a/libfaim/aim_conn.c	Thu Jun 29 19:38:18 2000 +0000
+++ b/libfaim/aim_conn.c	Thu Jun 29 20:40:28 2000 +0000
@@ -80,6 +80,9 @@
   }
   faim_mutex_unlock(&sess->connlistlock);
 
+  /* XXX: do we need this for txqueue too? */
+  aim_rxqueue_cleanbyconn(sess, *deadconn);
+
   aim_conn_close(*deadconn);
   free(*deadconn);
   deadconn = NULL;
@@ -255,7 +258,8 @@
   faim_mutex_lock(&sess->connlistlock);
   if (sess->connlist == NULL) {
     faim_mutex_unlock(&sess->connlistlock);
-    return 0;
+    *status = -1;
+    return NULL;
   }
   faim_mutex_unlock(&sess->connlistlock);