Changeset 748bcdd for protocols/account.c
- Timestamp:
- 2010-11-21T15:23:54Z (10 years ago)
- Branches:
- master
- Children:
- 495d21b
- Parents:
- bb151f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.c
rbb151f7 r748bcdd 339 339 } 340 340 341 static gboolean account_on_timeout( gpointer d, gint fd, b_input_condition cond ); 342 341 343 void account_on( bee_t *bee, account_t *a ) 342 344 { … … 351 353 a->reconnect = 0; 352 354 a->prpl->login( a ); 355 356 if( !( a->ic->flags & OPT_SLOW_LOGIN ) ) 357 a->ic->keepalive = b_timeout_add( 120000, account_on_timeout, a->ic ); 353 358 } 354 359 … … 362 367 cancel_auto_reconnect( a ); 363 368 } 369 } 370 371 static gboolean account_on_timeout( gpointer d, gint fd, b_input_condition cond ) 372 { 373 struct im_connection *ic = d; 374 375 imcb_error( ic, "Connection timeout" ); 376 imc_logout( ic, TRUE ); 377 378 return FALSE; 364 379 } 365 380
Note: See TracChangeset
for help on using the changeset viewer.