Skip to content
Snippets Groups Projects
Commit 86f9914d authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

bless object into class earlier, to handle graceful exit

parent b9b4db3a
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ sub new {
my $self = {
configuration => $args{configuration},
};
bless $self, $pkg;
if ($self->{configuration}->{logger}) {
Log::Any::Adapter->set(
......@@ -111,8 +112,6 @@ sub new {
$self->{db} = AccountManager::DB->new();
bless $self, $pkg;
return $self;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment