Skip to content

Commit bcfebe5

Browse files
committed
Fix closeWait
1 parent 514a56c commit bcfebe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Grpc/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function closeWait(): void
363363
return;
364364
}
365365
$this->closing = 2;
366-
$this->closeWaiter = new Channel;
366+
$this->closeWaiter = $closeWaiter = new Channel;
367367
$n = 0;
368368
if ($this->recvCid > 0) {
369369
$n++;
@@ -372,7 +372,7 @@ public function closeWait(): void
372372
$n++;
373373
}
374374
while ($n--) {
375-
$this->closeWaiter->pop();
375+
$closeWaiter->pop();
376376
}
377377
}
378378
}

0 commit comments

Comments
 (0)