Shutdown wrappers, too

This commit is contained in:
Daniil Gentili 2020-09-25 21:22:41 +02:00
parent 5779732cd0
commit afaf80d549

View File

@ -122,7 +122,7 @@ abstract class ClientAbstract
{ {
$this->run = false; $this->run = false;
yield $this->server->disconnect(); 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. * Call function.