public void DoThis() { while (isRunning) { try { if (bot == null) { bot = new ClasherDynBot(); } Thread.Sleep(5); } catch (Exception ex) { throw ex; } } }
public void DoThis() { while (isRunning) { try { if (bot == null) { bot = new ClasherDynBot(); } Thread.Sleep(5); } catch (Exception ex) { logger.LogWrite(DateTime.Now + " - " + ex.Message + " --- " + ex); } } }