Blocking.pm: do not generate red ? in FHEMWEB (Forum #46640)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10343 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-01-03 10:55:45 +00:00
parent 8b0fc39637
commit 71dc0bbe9b

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