Always closing...

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2965 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-03-22 16:14:02 +00:00
parent 184403f8b9
commit 337311f19a

View File

@@ -90,7 +90,7 @@ BlockingInformParent($;$$)
{
my ($informFn, $param, $waitForRead) = @_;
my $ret = undef;
$waitForRead = 1 if (undef($waitForRead));
$waitForRead = 1 if (!defined($waitForRead));
# Write the data back, calling the function
my $addr = "localhost:$defs{$telnetDevice}{PORT}";
@@ -112,9 +112,7 @@ BlockingInformParent($;$$)
$ret = undef if(!defined($len));
}
if($^O =~ m/Win/) {
close($client) if($client);
}
close($client) if($client);
return $ret;
}