Stream::close can throw Amp\ByteStream\ClosedException
This commit is contained in:
@ -63,6 +63,9 @@ class SocketStream implements Stream
|
||||
return $this->socket->write($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function close(): void
|
||||
{
|
||||
$this->socket->close();
|
||||
|
Reference in New Issue
Block a user