make listConnectedClients method safe for all broker states
Formaly, there is nothing to restrict one to call clients listing (server.listConnectedClients()) immediatelly after constructing instance using new Server();. In this case caller will get NulPointerException which may ruin the runtime.
This PR fixes that.
make listConnectedClients method safe for all broker states
Formaly, there is nothing to restrict one to call clients listing (
server.listConnectedClients()
) immediatelly after constructing instance usingnew Server();
. In this case caller will get NulPointerException which may ruin the runtime. This PR fixes that.