private void scheduleReconnect(string host, int port) { if (!disconnected) { eventLoopGroup.Schedule(async() => await ConnectAsync(host, port), TimeSpan.FromSeconds(ClientSettings.ReconnectInterval)); } }