Skip to content
Snippets Groups Projects
Commit 0fa23110 authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Clean up disconnect_when_inactive().

parent 5bb34689
No related branches found
No related tags found
No related merge requests found
......@@ -554,16 +554,15 @@ sub password {
=cut
sub disconnect_when_inactive {
my $self = shift;
my ( $self, $value ) = @_;
if(@_) {
my $val = shift;
$self->{'disconnect_when_inactive'} = $val;
if($val) {
if ( defined($value) ) {
$self->{'disconnect_when_inactive'} = $value;
if ($value) {
$self->disconnect_if_idle();
}
}
return $self->{'disconnect_when_inactive'};
}
......
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