When calling ```php $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. https://github.com/planetteamspeak/ts3phpframework/blob/035d24265e3604460124ccdad9358ae6c5293b25/libraries/TeamSpeak3/Adapter/ServerQuery.php#L96) which used to catch the `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.
When calling
the
ServerQuery::__destruct()and thusthis->request("quit")is being called (c.f. https://github.com/planetteamspeak/ts3phpframework/blob/dev/src/Adapter/ServerQuery.php#L106).This line used to catch
Exceptioninstead ofAdapterException(c.f.ts3phpframework/libraries/TeamSpeak3/Adapter/ServerQuery.php
Line 96 in 035d242
TransportExceptionthrown inreadLine(...)(c.f. https://github.com/planetteamspeak/ts3phpframework/blob/dev/src/Transport/TCP.php#L162), when callingthis->request("quit").For that reason, the
TransportExceptionis thrown and not caught anymore.