[Affelio-cvs 492] CVS update: affelio/lib

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 7月 1日 (金) 17:19:42 JST


Index: affelio/lib/Affelio.pm
diff -u affelio/lib/Affelio.pm:1.17 affelio/lib/Affelio.pm:1.18
--- affelio/lib/Affelio.pm:1.17	Fri Jul  1 11:00:05 2005
+++ affelio/lib/Affelio.pm	Fri Jul  1 17:19:42 2005
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: Affelio.pm,v 1.17 2005/07/01 02:00:05 slash5234 Exp $
+# $Id: Affelio.pm,v 1.18 2005/07/01 08:19:42 slash5234 Exp $
 
 package Affelio;
 {
@@ -170,7 +170,12 @@
     ######################################################################
     sub DESTROY{
 	my $self = shift;
-	$self->{db}->disconnect;
+	if(defined($self->{db})){
+	    try{
+		$self->{db}->disconnect;
+	    }catch Error with{
+	    };
+	}
     }
 
     ######################################################################


Affelio-cvs メーリングリストの案内
Back to archive index