Changeset 441b9dd


Ignore:
Timestamp:
2012-01-10T23:36:29Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
7c2daf5f, 948abab, e618d85
Parents:
ac36463
Message:

Don't handle HTTP 401 responses from Twitter API differently anymore after
initial login. This fixes issues with Twitter's intermittent authentication
failures. (Bug #893)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    rac36463 r441b9dd  
    887887                if (!(ic->flags & OPT_LOGGED_IN))
    888888                        imcb_connected(ic);
    889         } else if (req->status_code == 401) {
    890                 imcb_error(ic, "Authentication failure");
    891                 imc_logout(ic, FALSE);
    892                 return;
    893889        } else {
    894890                // It didn't go well, output the error and return.
     
    939935                if (!(ic->flags & OPT_LOGGED_IN))
    940936                        imcb_connected(ic);
    941         } else if (req->status_code == 401) {
    942                 imcb_error(ic, "Authentication failure");
    943                 imc_logout(ic, FALSE);
    944                 return;
    945937        } else {
    946938                // It didn't go well, output the error and return.
Note: See TracChangeset for help on using the changeset viewer.