void _updateTimer_Elapsed(object sender, ElapsedEventArgs e) { try { if (_torrentSession != null) { if (!_torrentSession.UpdateData()) { IsConnected = false; } else { IsConnected = true; } if (TorrentsUpdated != null) { TorrentsUpdated(); } } } catch (Exception exception) { Log.Instance().Print("timer elapsed"); Log.Instance().Print(exception); } }