Ignore:
Timestamp:
Feb 18, 2008, 8:54:45 PM (13 years ago)
Author:
Alejandro R. Sedeño <asedeno@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2f69081, 61abb18
Parents:
b4fcc06 (diff), 6b580b0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:
Merging in the select branch, part 2. select.c
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.