From 11898e5db4a810700c1953497f6804c76cce1cc1 Mon Sep 17 00:00:00 2001 From: Nadyita Date: Thu, 14 Mar 2024 15:15:21 +0100 Subject: [PATCH] Write must not ignore chosen worker --- src/Client/Multi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/Multi.php b/src/Client/Multi.php index 3167eb6..681b7dd 100644 --- a/src/Client/Multi.php +++ b/src/Client/Multi.php @@ -174,7 +174,7 @@ public function login(): void { } public function write(Package\Out $package, ?string $worker=null): void { - $this->getBestWorker()?->write($package); + $this->getBestWorker($worker)?->write($package); } /** @return ConcurrentIterator */