Shutdown wrappers, too
This commit is contained in:
parent
5779732cd0
commit
afaf80d549
@ -122,7 +122,7 @@ abstract class ClientAbstract
|
||||
{
|
||||
$this->run = false;
|
||||
yield $this->server->disconnect();
|
||||
yield \array_map(fn (ChannelledSocket $w): Promise => $w->disconnect(), $this->wrappers);
|
||||
foreach ($this->wrappers as $w) { yield from $w->disconnect(); }
|
||||
}
|
||||
/**
|
||||
* Call function.
|
||||
|
Loading…
Reference in New Issue
Block a user