Changeset c2fb3809 for protocols/jabber/io.c
- Timestamp:
- 2007-04-15T22:39:35Z (17 years ago)
- Branches:
- master
- Children:
- 84b045d
- Parents:
- cd4723c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/io.c
rcd4723c rc2fb3809 118 118 119 119 imc_error( ic, "Short write() to server" ); 120 imc_logout( ic );120 imc_logout( ic, TRUE ); 121 121 return FALSE; 122 122 } … … 161 161 { 162 162 imc_error( ic, "XML stream error" ); 163 imc_logout( ic );163 imc_logout( ic, TRUE ); 164 164 return FALSE; 165 165 } … … 205 205 imc_error( ic, "TLS is turned on for this " 206 206 "account, but is not supported by this server" ); 207 imc_logout( ic );207 imc_logout( ic, FALSE ); 208 208 return FALSE; 209 209 } … … 217 217 { 218 218 imc_error( ic, "XML stream error" ); 219 imc_logout( ic );219 imc_logout( ic, TRUE ); 220 220 return FALSE; 221 221 } … … 228 228 229 229 imc_error( ic, "Error while reading from server" ); 230 imc_logout( ic );230 imc_logout( ic, TRUE ); 231 231 return FALSE; 232 232 } … … 243 243 { 244 244 imc_error( ic, "Could not connect to server" ); 245 imc_logout( ic );245 imc_logout( ic, TRUE ); 246 246 return FALSE; 247 247 } … … 264 264 265 265 imc_error( ic, "Could not connect to server" ); 266 imc_logout( ic );266 imc_logout( ic, TRUE ); 267 267 return FALSE; 268 268 } … … 275 275 static xt_status jabber_end_of_stream( struct xt_node *node, gpointer data ) 276 276 { 277 imc_logout( data );277 imc_logout( data, TRUE ); 278 278 return XT_ABORT; 279 279 } … … 298 298 { 299 299 imc_error( ic, "Server requires TLS connections, but TLS is turned off for this account" ); 300 imc_logout( ic );300 imc_logout( ic, FALSE ); 301 301 302 302 return XT_ABORT; … … 328 328 { 329 329 imc_error( ic, "TLS is turned on for this account, but is not supported by this server" ); 330 imc_logout( ic );330 imc_logout( ic, FALSE ); 331 331 332 332 return XT_ABORT; … … 429 429 struct xt_node *c; 430 430 char *s, *type = NULL, *text = NULL; 431 int allow_reconnect = TRUE; 431 432 432 433 for( c = node->children; c; c = c->next ) … … 453 454 { 454 455 imc_error( ic, "Unknown stream error reported by server" ); 455 imc_logout( ic );456 imc_logout( ic, allow_reconnect ); 456 457 return XT_ABORT; 457 458 } … … 463 464 { 464 465 imc_error( ic, "Account and resource used from a different location" ); 465 ic->wants_to_die = TRUE;466 allow_reconnect = FALSE; 466 467 } 467 468 else … … 470 471 } 471 472 472 imc_logout( ic );473 imc_logout( ic, allow_reconnect ); 473 474 474 475 return XT_ABORT;
Note: See TracChangeset
for help on using the changeset viewer.