Skip to content
Snippets Groups Projects
Commit 25ea5e55 authored by Ian Longden's avatar Ian Longden
Browse files

fix to stop more connections being generated for the same connection

parent 01d230ec
No related branches found
No related tags found
No related merge requests found
......@@ -142,10 +142,7 @@ sub gen_load{
# return if the connection and species, group are the same
my $db_reg;
if($reg->get_alias($dba->species,"no throw")){
$db_reg = $reg->get_DBAdaptor($dba->species,$dba->group);
}
my $db_reg = $reg->get_DBAdaptor($dba->species,$dba->group);
if(defined($db_reg)){
if($dba->dbc->equals($db_reg->dbc)){
return $db_reg;
......
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