Skip to content
Browse files

In case we run out of time, trash state

  • Loading branch information...
1 parent c7fe2e0 commit c8d9699264d864abc1ccf365f7e9e23b890b69c8 @paulcbetts paulcbetts committed Mar 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ReactiveUI.Mobile/AutoSuspendAppDelegate.cs
View
2 ReactiveUI.Mobile/AutoSuspendAppDelegate.cs
@@ -61,7 +61,7 @@ public AutoSuspendAppDelegate()
host.ShouldInvalidateState = untimelyDeath;
host.ShouldPersistState = _willTerminate.Merge(_backgrounded).SelectMany(app => {
- var taskId = app.BeginBackgroundTask(new NSAction(() => {}));
+ var taskId = app.BeginBackgroundTask(new NSAction(() => untimelyDeath.OnNext(Unit.Default)));
// NB: We're being force-killed, signal invalidate instead
if (taskId == UIApplication.BackgroundTaskInvalid) {

0 comments on commit c8d9699

Please sign in to comment.
Something went wrong with that request. Please try again.