Work around a timing issues with accounts that have no passwords.

Review Request #1896 — Created Oct. 6, 2022 and submitted

Information

pidgin/pidgin
default

Reviewers

There will be a better fix for this, but it's going to be a bit involved. The
problem stems from `purple_account_set_enabled` which is bringing the account
online as soon as that is set. At startup, the accounts are unserialized from
accounts.xml, which sets the enabled property, which causes the account to
connect before the rest of the core is started.

Started pidgin3 with an account that fails to connect 100% of the time and verified nothing crashed.

Summary ID
Work around a timing issues with accounts that have no passwords.
There will be a better fix for this, but it's going to be a bit involved. The problem stems from `purple_account_set_enabled` which is bringing the account online as soon as that is set. At startup, the accounts are unserialized from accounts.xml, which sets the enabled property, which causes the account to connect before the rest of the core is started.
ed9723cd307dfb0f39260a7537b9553fbab6d636
QuLogic
  1. Ship It!
  2. Looks like what I proposed as a quick fix, but with correctly-done types.

    1. and the very important G_SOURCE_REMOVE that was missing from yours and causing me to flood libera :)

  3. 
      
grim
Review request changed

Status: Closed (submitted)

Loading...