mirror of
https://github.com/danog/ipc.git
synced 2024-11-26 20:15:05 +01:00
Avoid hangs
This commit is contained in:
parent
1313eb755a
commit
1ee91452f4
@ -71,6 +71,9 @@ final class ChannelledSocket implements Channel
|
||||
yield $this->channel->send(new ChannelCloseAck);
|
||||
$this->state = self::GOT_FIN_MASK;
|
||||
yield $this->disconnect();
|
||||
if ($this->closePromise) {
|
||||
$this->closePromise->resolve($data);
|
||||
}
|
||||
return null;
|
||||
} elseif ($data instanceof ChannelCloseAck) {
|
||||
$this->closePromise->resolve($data);
|
||||
|
Loading…
Reference in New Issue
Block a user