Commit d4ad9fd4 authored by Andy Yates's avatar Andy Yates
Browse files

[ENSCORESW-596]. Do not call disconnect_if_idle on a DBAdaptor.

The method was called on the wrong object. Swithced around and tested
parent 7f8141bc
......@@ -2877,7 +2877,7 @@ sub _core_get_species_and_object_type {
last;
}
}
$dba->disconnect_if_idle(); # always disconnect after lookup
$dba->dbc->disconnect_if_idle(); # always disconnect after lookup
return ($species, $final_type, $final_db_type) if defined $species;
return;
}
......@@ -2901,7 +2901,7 @@ sub _compara_get_species_and_object_type {
last;
}
}
$dba->disconnect_if_idle(); # always disconnect after lookup
$dba->dbc->disconnect_if_idle(); # always disconnect after lookup
return ($species, $final_type, $final_db_type);
return;
}
......
Markdown is supported
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