[vhffs-dev] [1523] auto reconnect to backend

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1523
Author:   gradator
Date:     2009-09-07 12:38:16 +0200 (Mon, 07 Sep 2009)
Log Message:
-----------
auto reconnect to backend

Modified Paths:
--------------
    trunk/vhffs-irc/modobot.pl

Modified: trunk/vhffs-irc/modobot.pl
===================================================================
--- trunk/vhffs-irc/modobot.pl	2009-09-06 15:09:47 UTC (rev 1522)
+++ trunk/vhffs-irc/modobot.pl	2009-09-07 10:38:16 UTC (rev 1523)
@@ -63,6 +63,11 @@
 {
 	my $seq = shift;  # set that to 1 in order to display only new entries
 
+	unless( $vhffs->is_valid )  {
+		$vhffs->reconnect();
+		irc_msg( 'what the fuck!?' );
+	}
+
 	my $objects = Vhffs::Object::getall( $vhffs, undef, Vhffs::Constants::WAITING_FOR_VALIDATION );
 	if( defined $objects )  {
 		foreach my $obj ( @{$objects} ) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/