amphp / process

An async process dispatcher for Amp.
MIT License
233 stars 30 forks source link

Added guard to ensure socket is still open before closing #49

Closed Bilge closed 3 years ago

Bilge commented 3 years ago

This is required to ensure no TypeError is thrown by attempting to close a socket that is already closed, since PHP 8 where warnings were promoted to errors.

Closes #48.

kelunik commented 3 years ago

Thanks!