2
0
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:
rudolfkoenig 2016-01-03 10:55:45 +00:00
parent bbc8bbc801
commit 0d006ed063

View File

@ -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";
}