Changeset a2a5236 for perl/modules


Ignore:
Timestamp:
Dec 22, 2009, 6:37:48 PM (14 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, release-1.10, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2cca044
Parents:
0dbb7d2
git-author:
Alejandro R. Sedeño <asedeno@mit.edu> (12/22/09 01:11:45)
git-committer:
Alejandro R. Sedeño <asedeno@mit.edu> (12/22/09 18:37:48)
Message:
Split jabber reconnect / keep-alive loops

Reconnect may mutate the list of connections on servers like Google's,
which tack noise onto the end of the resource.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Jabber/lib/BarnOwl/Module/Jabber.pm

    r0dbb7d2 ra2a5236  
    136136
    137137    foreach my $jid ( $conn->getJIDs() ) {
    138 
    139         next unless $conn->jidActive($jid) or $conn->tryReconnect($jid);
     138        next if $conn->jidActive($jid);
     139        $conn->tryReconnect($jid);
     140    }
     141
     142    foreach my $jid ( $conn->getJIDs() ) {
     143        next unless $conn->jidActive($jid);
    140144
    141145        my $client = $conn->getConnectionFromJID($jid);
Note: See TracChangeset for help on using the changeset viewer.