mirror of
https://github.com/danog/ipc.git
synced 2024-11-30 04:29:09 +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);
|
yield $this->channel->send(new ChannelCloseAck);
|
||||||
$this->state = self::GOT_FIN_MASK;
|
$this->state = self::GOT_FIN_MASK;
|
||||||
yield $this->disconnect();
|
yield $this->disconnect();
|
||||||
|
if ($this->closePromise) {
|
||||||
|
$this->closePromise->resolve($data);
|
||||||
|
}
|
||||||
return null;
|
return null;
|
||||||
} elseif ($data instanceof ChannelCloseAck) {
|
} elseif ($data instanceof ChannelCloseAck) {
|
||||||
$this->closePromise->resolve($data);
|
$this->closePromise->resolve($data);
|
||||||
|
Loading…
Reference in New Issue
Block a user