-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
bugConfirmed as a valid bug and requires fix.Confirmed as a valid bug and requires fix.
Description
When calling
$tsServer = // some object containing the server config
$options = array("host" => $tsServer->getHost(), "port" => $tsServer->getQueryPort(), "timeout" => 10, "blocking" => true);
$object = new ServerQuery($options);the ServerQuery::__destruct() and thus this->request("quit") is being called (c.f. https://github.com/planetteamspeak/ts3phpframework/blob/dev/src/Adapter/ServerQuery.php#L106).
This line used to catch Exception instead of AdapterException (c.f.
| catch(Exception $e) |
TransportException thrown in readLine(...) (c.f. https://github.com/planetteamspeak/ts3phpframework/blob/dev/src/Transport/TCP.php#L162), when calling this->request("quit").
For that reason, the TransportException is thrown and not caught anymore.
Sebbo94BY
Metadata
Metadata
Assignees
Labels
bugConfirmed as a valid bug and requires fix.Confirmed as a valid bug and requires fix.