Skip to content
Snippets Groups Projects
Commit a677161a authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Andreas Traczyk
Browse files

fix: fixes CTD when suspending the app during a call

- Termination of an application upon suspension is a function
  of available system resources, and my occur during desktop
  change or minimization of the app while in a call. This patch
  removes the actions of the app suspension event handler such as
  hanging up any remaining calls. With this patch applied, abrupt
  termination of the program during a call, will result in a
  hanging call in the peer's client.

Change-Id: Id8c0e6764eb514a39f2c2ca67404ccdc9a765905
Tuleap: #790
parent 325b12cc
No related branches found
No related tags found
No related merge requests found
...@@ -267,12 +267,12 @@ void RingClientUWP::MainPage::OnstateChange(Platform::String ^callId, RingClient ...@@ -267,12 +267,12 @@ void RingClientUWP::MainPage::OnstateChange(Platform::String ^callId, RingClient
void void
MainPage::Application_Suspending(Object^, Windows::ApplicationModel::SuspendingEventArgs^ e) MainPage::Application_Suspending(Object^, Windows::ApplicationModel::SuspendingEventArgs^ e)
{ {
MSG_("Application_Suspending"); /*MSG_("Application_Suspending");
auto deferral = e->SuspendingOperation->GetDeferral(); auto deferral = e->SuspendingOperation->GetDeferral();
Video::VideoManager::instance->captureManager()->CleanupCameraAsync(); Video::VideoManager::instance->captureManager()->CleanupCameraAsync();
MSG_("Hang up calls..."); MSG_("Hang up calls...");
RingD::instance->deinit(); RingD::instance->deinit();
deferral->Complete(); deferral->Complete();*/
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment