diff --git a/BeWo/View/HomeDragPanelView.xaml.cs b/BeWo/View/HomeDragPanelView.xaml.cs index 8204d1e32..226fa6922 100644 --- a/BeWo/View/HomeDragPanelView.xaml.cs +++ b/BeWo/View/HomeDragPanelView.xaml.cs @@ -1353,7 +1353,7 @@ namespace BeWo.View chatView.StatusSetting.SelectedIndex = 1; });*/ - // var ipAdresse = "192.168.1.109"; //3 |9 || 192.168.1.103"app4.bewoplaner.de" + // var ipAdresse = "192.168.1.103"; //3 |9 || 192.168.1.103"app4.bewoplaner.de" var port = 5000; var uri = BeWoApp.SiteOfOrigin; @@ -1779,12 +1779,14 @@ namespace BeWo.View DispatcherPriority.Normal, (Action) delegate { - chatView.UpdateTcp(clientSocket); - chatView.ButtonAlarmLabel.Visibility = Visibility.Visible; - chatView.SetAllUserOfflineIfNoInet(); + if(chatView != null){ + chatView.UpdateTcp(clientSocket); + chatView.ButtonAlarmLabel.Visibility = Visibility.Visible; + chatView.SetAllUserOfflineIfNoInet(); - chatView.StatusSetting.SelectedIndex = 1; - chatView.SetServerStats("Verbindung zum Server Unterbrochen"); + chatView.StatusSetting.SelectedIndex = 1; + chatView.SetServerStats("Verbindung zum Server Unterbrochen"); + } }); ReConnectAfterLoseConnection(); @@ -1898,7 +1900,7 @@ namespace BeWo.View } - public void ReconnectServer() + /*public void ReconnectServer() { try { @@ -1923,7 +1925,7 @@ namespace BeWo.View { MessageBox.Show("Beim Versuch ,die verbindung erneut aufzubauen, ist ein Fehler unterlaufen ", "Fehler: 2110 ", MessageBoxButton.OK); } - } + }*/ //--------------------------------------------------------------------------------------------------------------------------- }