Fixed warning on uninitialized value.
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI.pm
index f656c08..874d3a4 100644 (file)
@@ -718,7 +718,7 @@ sub connected {
 sub _verify_pid {
   my ($self) = @_;
 
-  return if $self->_conn_pid == $$;
+  return if defined $self->_conn_pid && $self->_conn_pid == $$;
 
   $self->_dbh->{InactiveDestroy} = 1;
   $self->_dbh(undef);