/// <summary> /// Reconnects a given client. /// </summary> /// <param name="client">The client, for which a reconnect should get performed.</param> /// <returns></returns> private async Task ReconnectClientAsync(ClientConnectionHandler client) { if (client.IsDisabled()) { // Only disconnect if the client is disabled: await client.DisconnectAsync(); } else { await client.ReconnectAsync(); } }