- Timestamp:
- 2010-04-14T12:17:12Z (15 years ago)
- Branches:
- master
- Children:
- d7d677d
- Parents:
- 21c87a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee.c
r21c87a7 rd33679e 52 52 void bee_free( bee_t *b ) 53 53 { 54 account_t *acc = b->accounts; 55 56 while( acc ) 54 while( b->accounts ) 57 55 { 58 if( acc->ic )59 imc_logout( acc->ic, FALSE );60 else if( acc->reconnect )61 cancel_auto_reconnect( acc);56 if( b->accounts->ic ) 57 imc_logout( b->accounts->ic, FALSE ); 58 else if( b->accounts->reconnect ) 59 cancel_auto_reconnect( b->accounts ); 62 60 63 if( acc->ic == NULL )64 account_del( b, acc);61 if( b->accounts->ic == NULL ) 62 account_del( b, b->accounts ); 65 63 else 66 64 /* Nasty hack, but account_del() doesn't work in this 67 65 case and we don't want infinite loops, do we? ;-) */ 68 acc = acc->next;66 b->accounts = b->accounts->next; 69 67 } 70 68
Note: See TracChangeset
for help on using the changeset viewer.