2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

FHEM/DevIo.pm: close SSL connections more carefully after fork (Forum #94219)

git-svn-id: https://svn.fhem.de/fhem/trunk@17994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-12-17 14:32:10 +00:00
parent a934037fdb
commit 810b7fcc1f

View File

@ -498,7 +498,11 @@ DevIo_CloseDev($@)
return if(!$dev);
if($hash->{TCPDev}) {
$hash->{TCPDev}->close();
if($isFork && $hash->{SSL}) { # Forum #94219
$hash->{TCPDev}->close(SSL_no_shutdown => 1);
} else {
$hash->{TCPDev}->close();
}
delete($hash->{TCPDev});
} elsif($hash->{USBDev}) {