2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

fhem.pl: add can check for SSL pending (Forum #73642)

git-svn-id: https://svn.fhem.de/fhem/trunk@16813 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-06-03 21:42:58 +00:00
parent e42453c887
commit eef75569c7

View File

@ -657,7 +657,8 @@ while (1) {
}
vec($ein, $hash->{EXCEPT_FD}, 1) = 1
if(defined($hash->{"EXCEPT_FD"}));
if($hash->{SSL} && $hash->{CD} && $hash->{CD}->pending()) {
if($hash->{SSL} && $hash->{CD} &&
$hash->{CD}->can('pending') && $hash->{CD}->pending()) {
vec($rout, $hash->{FD}, 1) = 1;
$nfound++;
}