mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
Null conditional on current app when connection closes.
This commit is contained in:
parent
db17d8d948
commit
cbe3447e70
@ -210,7 +210,7 @@ namespace Remotely.Desktop.Win.ViewModels
|
||||
|
||||
CasterSocket.Connection.Closed += async (ex) =>
|
||||
{
|
||||
await App.Current.Dispatcher.InvokeAsync(() =>
|
||||
await App.Current?.Dispatcher?.InvokeAsync(() =>
|
||||
{
|
||||
Viewers.Clear();
|
||||
SessionID = "Disconnected";
|
||||
@ -219,7 +219,7 @@ namespace Remotely.Desktop.Win.ViewModels
|
||||
|
||||
CasterSocket.Connection.Reconnecting += async (ex) =>
|
||||
{
|
||||
await App.Current.Dispatcher.InvokeAsync(() =>
|
||||
await App.Current?.Dispatcher?.InvokeAsync(() =>
|
||||
{
|
||||
Viewers.Clear();
|
||||
SessionID = "Reconnecting";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user