File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public function __construct(
9494 */
9595 public function logError ($ e , bool $ fatal = false ): void
9696 {
97- if ($ fatal ) $ this ->stop ();
97+ if ($ fatal ) $ this ->close ();
9898 $ error = 'Error: ' . $ e ->getMessage () . PHP_EOL .
9999 'Line ' . $ e ->getLine () . ' in ' . $ e ->getFile () . PHP_EOL .
100100 $ e ->getTraceAsString ();
@@ -162,7 +162,7 @@ public function start(bool $start_loop = false): void
162162 * This method checks if the server resource is valid and open,
163163 * and if so, it closes the resource to stop the server.
164164 */
165- public function stop (bool $ stop_loop = false ): void
165+ public function close (bool $ stop_loop = false ): void
166166 {
167167 if ($ this ->running ) {
168168 $ this ->socket ->close ();
@@ -368,6 +368,6 @@ private function handleResource($client): null
368368 */
369369 public function __destruct ()
370370 {
371- $ this ->stop ();
371+ $ this ->close ();
372372 }
373373}
You can’t perform that action at this time.
0 commit comments