This repository was archived by the owner on Feb 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 6868 "ReactParallel\\ObjectProxy\\Proxy\\Registry::__construct"
6969 ]
7070 },
71+ "LogicalOr": {
72+ "ignore": [
73+ "ReactParallel\\ObjectProxy\\Proxy\\Handler::handleExistence",
74+ "ReactParallel\\ObjectProxy\\Proxy\\Handler::countDestruct",
75+ "ReactParallel\\ObjectProxy\\Proxy\\Handler::handleDestruct",
76+ "ReactParallel\\ObjectProxy\\Proxy\\Handler::handleNotify",
77+ "ReactParallel\\ObjectProxy\\Proxy\\Handler::handleCall",
78+ "ReactParallel\\ObjectProxy\\Proxy\\Registry::__construct"
79+ ]
80+ },
7181 "MethodCallRemoval": {
7282 "ignore": [
7383 "ReactParallel\\ObjectProxy\\Proxy::__destruct",
Original file line number Diff line number Diff line change 55namespace ReactParallel \ObjectProxy ;
66
77use parallel \Channel ;
8+ use parallel \Channel \Error \Closed ;
89use React \EventLoop \StreamSelectLoop ;
910use ReactParallel \EventLoop \EventLoopBridge ;
1011use ReactParallel \Factory ;
@@ -156,11 +157,19 @@ public function close(): void
156157 $ this ->closed = TRUE_ ;
157158
158159 foreach ($ this ->destruct as $ destruct ) {
159- $ destruct ->send ('bye ' );
160- $ destruct ->close ();
160+ try {
161+ $ destruct ->send ('bye ' );
162+ $ destruct ->close ();
163+ } catch (Closed $ closed ) {
164+ // @ignoreException
165+ }
161166 }
162167
163- $ this ->in ->close ();
168+ try {
169+ $ this ->in ->close ();
170+ } catch (Closed $ closed ) {
171+ // @ignoreException
172+ }
164173 }
165174
166175 public function __destruct ()
You can’t perform that action at this time.
0 commit comments