protected override void StartModule() { try { Logger.Info("Welcome to NewCamd"); _settings.Load(); _keyblock.Prepare(); StartServer(); _listeningThread = _threadHelper.RunSafeInNewThread(Listen, Logger); } catch (Exception ex) { Logger.Fatal($"An unhandled exception occured: {ex.Message}", ex); Error(); } }
void HandleClient() { _keyblock.Prepare(); _communication.Start(_client); }