This commit is contained in:
2020-12-15 18:25:43 +08:00
parent d8bcf9ebe0
commit c4228e1658
+2 -3
View File
@@ -132,10 +132,9 @@ class Server extends Application
/**
* @param $host
* @param $Port
* @return Http|Packet|Receive|Websocket
* @throws Exception
* @return Packet|Websocket|Receive|Http|null
*/
public function error_stop($host, $Port): Packet|Websocket|Receive|Http
public function error_stop($host, $Port): Packet|Websocket|Receive|Http|null
{
$this->error(sprintf('Port %s::%d is already.', $host, $Port));
if ($this->baseServer) {