mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
Fix breakage if ext/openssl missing in windows
This commit is contained in:
parent
50cbd41b83
commit
2a84f46853
@ -306,7 +306,9 @@ class UvReactor implements SignalReactor {
|
||||
}
|
||||
|
||||
private function chooseWindowsPollingFunction($stream) {
|
||||
return (stream_get_meta_data($stream)['stream_type'] === 'tcp_socket/ssl')
|
||||
$streamType = stream_get_meta_data($stream)['stream_type'];
|
||||
|
||||
return ($streamType === 'tcp_socket/ssl' || $streamType === 'tcp_socket')
|
||||
? 'uv_poll_init_socket'
|
||||
: 'uv_poll_init';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user