Skip to content
Snippets Groups Projects
Commit 338a5e3c authored by Web Admin's avatar Web Admin
Browse files

merged from branch-ensembl-32

parent e472227a
No related branches found
No related tags found
No related merge requests found
...@@ -730,6 +730,7 @@ sub set_disconnect_when_inactive{ ...@@ -730,6 +730,7 @@ sub set_disconnect_when_inactive{
sub disconnect_all { sub disconnect_all {
foreach my $dba ( @{get_all_DBAdaptors()||[]} ){ foreach my $dba ( @{get_all_DBAdaptors()||[]} ){
my $dbc = $dba->dbc; my $dbc = $dba->dbc;
next unless $dbc;
#disconnect if connected #disconnect if connected
$dbc->disconnect_if_idle() if $dbc->connected(); $dbc->disconnect_if_idle() if $dbc->connected();
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment