Changeset b25b5a4 for lib/BarnOwl/Module


Ignore:
Timestamp:
May 4, 2009, 4:40:00 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
acdd52e
Parents:
f0550c5
Message:
Let verify_credentials take as long as it likes.

Move the $twitter->{ua}->timeout(1); call to after the initial
login. This seems to help with bogus login failures on startup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/BarnOwl/Module/Twitter.pm

    rf0550c5 rb25b5a4  
    9393                              source => 'barnowl');
    9494
     95if(!defined($twitter->verify_credentials())) {
     96    fail("Invalid twitter credentials");
     97}
     98
    9599eval {
    96100    $twitter->{ua}->timeout(1);
    97101};
    98 
    99 if(!defined($twitter->verify_credentials())) {
    100     fail("Invalid twitter credentials");
    101 }
    102102
    103103sub match {
Note: See TracChangeset for help on using the changeset viewer.