mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
00_MQTT2_CLIENT.pm: prevent double connect with disable 0 (Forum #111959)
git-svn-id: https://svn.fhem.de/fhem/trunk@27467 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f81ea4d2e5
commit
baed376d4c
@ -408,7 +408,7 @@ MQTT2_CLIENT_Attr(@)
|
||||
}
|
||||
}
|
||||
|
||||
if($attrName eq "disable") {
|
||||
if($attrName eq "disable" && $init_done) {
|
||||
if($type eq "set" && $param[0]) {
|
||||
MQTT2_CLIENT_Disco($hash,1)
|
||||
if(DevIo_getState($hash) ne "disconnected");
|
||||
|
Loading…
x
Reference in New Issue
Block a user