FHEMWEB: added pending for thos who set HTTPS on the current connection

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5809 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-05-10 10:36:58 +00:00
parent 493071e4a6
commit 9ada2c185e

View File

@@ -279,7 +279,7 @@ FW_Read($)
}
$hash->{BUF} .= $buf;
if($defs{$FW_wname}{SSL}) {
if($defs{$FW_wname}{SSL} && $c->can('pending')) {
while($c->pending()) {
sysread($c, $buf, 1024);
$hash->{BUF} .= $buf;