mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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(!$telnetDevice) {
|
||||
$telnetDevice = "telnetForBlockingFn_".time();
|
||||
my $ret = CommandDefine(undef, "$telnetDevice telnet 0");
|
||||
my $ret = CommandDefine(undef, "-temporary $telnetDevice telnet 0");
|
||||
if($ret) {
|
||||
$ret = "BlockingCall ($blockingFn): ".
|
||||
"No telnet port found and cannot create one: $ret";
|
||||
Log 1, $ret;
|
||||
return $ret;
|
||||
}
|
||||
CommandAttr(undef, "$telnetDevice room hidden");
|
||||
$defs{$telnetDevice}{TEMPORARY} = 1;
|
||||
$attr{$telnetDevice}{room} = "hidden"; # no red ?, Forum #46640
|
||||
$attr{$telnetDevice}{allowfrom} = "127.0.0.1";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user