comparison 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
comparison
equal deleted inserted replaced
444:e7885c54ed2f 445:e4c34ca88d9b
77 } 77 }
78 cur = cur->next; 78 cur = cur->next;
79 } 79 }
80 } 80 }
81 faim_mutex_unlock(&sess->connlistlock); 81 faim_mutex_unlock(&sess->connlistlock);
82
83 /* XXX: do we need this for txqueue too? */
84 aim_rxqueue_cleanbyconn(sess, *deadconn);
82 85
83 aim_conn_close(*deadconn); 86 aim_conn_close(*deadconn);
84 free(*deadconn); 87 free(*deadconn);
85 deadconn = NULL; 88 deadconn = NULL;
86 89
253 int i; 256 int i;
254 257
255 faim_mutex_lock(&sess->connlistlock); 258 faim_mutex_lock(&sess->connlistlock);
256 if (sess->connlist == NULL) { 259 if (sess->connlist == NULL) {
257 faim_mutex_unlock(&sess->connlistlock); 260 faim_mutex_unlock(&sess->connlistlock);
258 return 0; 261 *status = -1;
262 return NULL;
259 } 263 }
260 faim_mutex_unlock(&sess->connlistlock); 264 faim_mutex_unlock(&sess->connlistlock);
261 265
262 /* 266 /*
263 * If we have data waiting to be sent, return immediatly 267 * If we have data waiting to be sent, return immediatly