Ignore:
Timestamp:
Feb 15, 2008, 12:56:49 AM (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:
18a54ee
Parents:
a6a4155
Message:
Initial select() changes.
stdin, zephyr, jabber, and irc are checked and have dispatch functions.
aim is hacked in -- not entirely pretty, but documented and isolated.
We still want timers.
File:
1 edited

Legend:

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

    r879e7e94 r9c7a701  
    116116            BarnOwl::error("Connection for $jid undefined -- error in reload?");
    117117        }
    118 
    119         my $status = $client->Process(0);
    120         if ( !defined($status) ) {
    121             BarnOwl::error("Jabber account $jid disconnected!");
    122             do_logout($jid);
    123         }
    124118        if ($::shutdown) {
    125119            do_logout($jid);
    126             return;
     120            next;
    127121        }
    128122        if ($vars{status_changed}) {
     
    387381                $conn->renameConnection($jidStr, $fullJid);
    388382                queue_admin_msg("Connected to jabber as $fullJid");
     383                # The remove_dispatch() method is called from the
     384                # ConnectionManager's removeConnection() method.
     385                BarnOwl::add_dispatch($client->getSocket()->fileno(), sub { $client->OwlProcess() });
    389386            }
    390387        }
Note: See TracChangeset for help on using the changeset viewer.