Ignore:
File:
1 edited

Legend:

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

    r879e7e94 r6b580b0  
    116116            BarnOwl::error("Connection for $jid undefined -- error in reload?");
    117117        }
    118 
     118        # We keep this in the mainloop hook for keep-alives
    119119        my $status = $client->Process(0);
    120120        if ( !defined($status) ) {
     
    124124        if ($::shutdown) {
    125125            do_logout($jid);
    126             return;
    127         }
     126            next;
     127        }
     128
    128129        if ($vars{status_changed}) {
    129130            my $p = new Net::Jabber::Presence;
     
    387388                $conn->renameConnection($jidStr, $fullJid);
    388389                queue_admin_msg("Connected to jabber as $fullJid");
     390                # The remove_dispatch() method is called from the
     391                # ConnectionManager's removeConnection() method.
     392                $client->{fileno} = $client->getSocket()->fileno();
     393                #queue_admin_msg("Connected to jabber as $fullJid ($client->{fileno})");
     394                BarnOwl::add_dispatch($client->{fileno}, sub { $client->OwlProcess() });
    389395            }
    390396        }
Note: See TracChangeset for help on using the changeset viewer.