add debugging and ->finish() before ->disconnect call
authorivan <ivan>
Tue, 24 Aug 2010 18:57:11 +0000 (18:57 +0000)
committerivan <ivan>
Tue, 24 Aug 2010 18:57:11 +0000 (18:57 +0000)
FS/FS/part_export/sqlradius.pm

index d8c5e04..f1ba3d2 100644 (file)
@@ -408,6 +408,14 @@ sub sqlradius_usergroup_insert { #subroutine, not method
     $sth->execute( $username, $group )
       or die "can't insert into groupname table: ". $sth->errstr;
   }
+  if ( $s_sth->{Active} ) {
+    warn "sqlradius s_sth still active; calling ->finish()";
+    $s_sth->finish;
+  }
+  if ( $sth->{Active} ) {
+    warn "sqlradius sth still active; calling ->finish()";
+    $sth->finish;
+  }
   $dbh->disconnect;
 }