Changeset d4f33f1


Ignore:
Timestamp:
Jul 13, 2015, 12:59:05 PM (9 years ago)
Author:
Jason Gross <jgross@mit.edu>
Branches:
master, release-1.10
Children:
4379288
Parents:
5f3f1e4
Message:
Clean up ircnets on socketless disconnect

This allows recovery from the state that BarnOwl gets into when (I
think) a disconnect message from the server is dropped, and BarnOwl
thinks it's connected, and the IRC server thinks it's not, and so you
can neither disconnect nor reconnect.
File:
1 edited

Legend:

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

    r926c721 rd4f33f1  
    562562                               "[" . $conn->alias . "] Reconnect cancelled");
    563563        $conn->cancel_reconnect;
     564        delete $ircnets{$conn->alias};
     565    } elsif (exists $ircnets{$conn->alias}) { # inconsistent state; no socket, but not yet deleted
     566        BarnOwl::admin_message('IRC',
     567                               "[" . $conn->alias . "] Attempt to disconnect from a socketless connection; deleting it");
    564568        delete $ircnets{$conn->alias};
    565569    }
Note: See TracChangeset for help on using the changeset viewer.