Avoid launching 2 status (closes: #934)

This commit is contained in:
Xavier Guimard 2016-02-17 09:07:01 +00:00
parent 63337070ec
commit 08408218fa
2 changed files with 3 additions and 2 deletions

View File

@ -137,8 +137,8 @@ sub _mustBeDefined {
}
sub init {
my ( $self, $args ) = @_;
unless ( ref $args ) {
my($self,$args) = @_;
unless(ref $args) {
$self->error('init argument must be a hashref');
return 0;
}

View File

@ -100,6 +100,7 @@ sub serverSignatureInit {
# Launch the status process
sub statusInit {
my ( $class, $tsv ) = @_;
return if ( $tsv->{statusPipe} and $tsv->{statusOut} );
require IO::Pipe;
$statusPipe = IO::Pipe->new;
$statusOut = IO::Pipe->new;