changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[ljcom] r11704: LJSV-1266: Twitter digest doesn't work f...

Committer: nnikulochkina
LJSV-1266: Twitter digest doesn't work for some users
Sleep before retry.
U   trunk/cgi-bin/LJ/Client/Twitter.pm
Modified: trunk/cgi-bin/LJ/Client/Twitter.pm
===================================================================
--- trunk/cgi-bin/LJ/Client/Twitter.pm	2012-04-13 08:57:44 UTC (rev 11703)
+++ trunk/cgi-bin/LJ/Client/Twitter.pm	2012-04-13 09:02:25 UTC (rev 11704)
@@ -321,6 +321,7 @@
 		$u->log_event ("twitter_failed", { text => $res->status_line } )
 		    if $opts{'call_from_digest'};
 		if( $res->code eq '502' && --$retry_number ){
+                    sleep 1;
 		    next RETRY;
 		} else {
 		    die "twitter connectivity error: " . $res->status_line;

Tags: changelog_bot, ljcom, nnikulochkina, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments