mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
00_MQTT2_CLIENT.pm: fix maxNrConnects for wss: (Forum #111959)
git-svn-id: https://svn.fhem.de/fhem/trunk@27269 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bdbb6faba9
commit
df096d600e
@ -121,6 +121,7 @@ MQTT2_CLIENT_connect($)
|
||||
$hash->{binary} = 1;
|
||||
$hash->{header}{"Sec-WebSocket-Protocol"} = "mqtt";
|
||||
}
|
||||
$hash->{nrConnects}++;
|
||||
return DevIo_OpenDev($hash, $disco, "MQTT2_CLIENT_doinit", sub(){})
|
||||
if($hash->{connecting});
|
||||
}
|
||||
@ -133,7 +134,6 @@ MQTT2_CLIENT_doinit($)
|
||||
|
||||
############################## CONNECT
|
||||
if($hash->{connecting} == 1) {
|
||||
$hash->{nrConnects}++;
|
||||
my $usr = AttrVal($name, "username", "");
|
||||
my ($err, $pwd) = getKeyValue($name);
|
||||
$pwd = undef if($usr eq "");
|
||||
|
Loading…
Reference in New Issue
Block a user