tcpserver: do not generate a warning on screen if the client reject the crypto enabling

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4028 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-01-12 11:17:28 +00:00
parent e12f7c516d
commit b326bbba24

View File

@@ -232,7 +232,7 @@ class tcpserver
));
stream_set_blocking ($this->socket, true);
stream_context_set_option ($this->socket, $options);
return stream_socket_enable_crypto ($this->socket, !!$val, $cryptoMethod);
return @stream_socket_enable_crypto ($this->socket, !!$val, $cryptoMethod);
}
/** Set context SSL option.