mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-28 11:01:59 +00:00
Blocking.pm: do not generate red ? in FHEMWEB (Forum #46640)
git-svn-id: https://svn.fhem.de/fhem/trunk@10343 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bbc8bbc801
commit
0d006ed063
@ -54,15 +54,14 @@ BlockingCall($$@)
|
|||||||
# If not suitable telnet device found, create a temporary one
|
# If not suitable telnet device found, create a temporary one
|
||||||
if(!$telnetDevice) {
|
if(!$telnetDevice) {
|
||||||
$telnetDevice = "telnetForBlockingFn_".time();
|
$telnetDevice = "telnetForBlockingFn_".time();
|
||||||
my $ret = CommandDefine(undef, "$telnetDevice telnet 0");
|
my $ret = CommandDefine(undef, "-temporary $telnetDevice telnet 0");
|
||||||
if($ret) {
|
if($ret) {
|
||||||
$ret = "BlockingCall ($blockingFn): ".
|
$ret = "BlockingCall ($blockingFn): ".
|
||||||
"No telnet port found and cannot create one: $ret";
|
"No telnet port found and cannot create one: $ret";
|
||||||
Log 1, $ret;
|
Log 1, $ret;
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
CommandAttr(undef, "$telnetDevice room hidden");
|
$attr{$telnetDevice}{room} = "hidden"; # no red ?, Forum #46640
|
||||||
$defs{$telnetDevice}{TEMPORARY} = 1;
|
|
||||||
$attr{$telnetDevice}{allowfrom} = "127.0.0.1";
|
$attr{$telnetDevice}{allowfrom} = "127.0.0.1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user