From 5f035e9bcb7ddc68d0798edcfa9df48a4ab6f937 Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Sun, 10 Nov 2019 15:33:06 -0500 Subject: [PATCH] Both clients playing music --- Aurora/Design/Views/Party/PartyViewModel.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Aurora/Design/Views/Party/PartyViewModel.cs b/Aurora/Design/Views/Party/PartyViewModel.cs index 1f9384a..6d831d9 100644 --- a/Aurora/Design/Views/Party/PartyViewModel.cs +++ b/Aurora/Design/Views/Party/PartyViewModel.cs @@ -227,7 +227,16 @@ namespace Aurora.Design.Views.Party _client.Start(Hostname, SettingsService.Instance.DefaultPort.ToString()); await JoinParty(); - SetState(PartyState.InParty); + //TODO add cancellation token + try + { + SetState(PartyState.InParty); + await _client.GetEvents().ConfigureAwait(true); + } + catch (Exception ex) + { + Console.WriteLine("Exception occurred while receiviing events: ", ex.Message); + } } private bool CanJoinExecute()