Skip to content

Commit 9e51ab1

Browse files
committed
Rename stop to close
1 parent 45cc31b commit 9e51ab1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/VerifierServer/Server.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)