mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
immediately disconnect/reconect on change of disable attribute
git-svn-id: https://svn.fhem.de/fhem/trunk@3901 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4efb260c8d
commit
7aa882f9fb
@ -292,6 +292,15 @@ mailcheck_Attr($$$)
|
||||
$client->Debug_fh(*STDERR) if( $client );
|
||||
}
|
||||
}
|
||||
} elsif( $attrName eq "disable" ) {
|
||||
my $hash = $defs{$name};
|
||||
if( $cmd eq "set" && $attrVal ne "0" ) {
|
||||
mailcheck_Disconnect($hash);
|
||||
} else {
|
||||
$attr{$name}{$attrName} = 0;
|
||||
mailcheck_Disconnect($hash);
|
||||
mailcheck_Connect($hash);
|
||||
}
|
||||
}
|
||||
|
||||
if( $cmd eq "set" ) {
|
||||
@ -417,6 +426,8 @@ mailcheck_Read($)
|
||||
if idle is supported the defailt is 600, without idle support the default is 60. the minimum is 60.</li>
|
||||
<li>nossl<br>
|
||||
1 -> don't use ssl.</li><br>
|
||||
<li>disable<br>
|
||||
1 -> disconnect and stop polling</li>
|
||||
<li>debug<br>
|
||||
1 -> enables debug output. default target is stdout.</li>
|
||||
<li>logfile<br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user