Skip to content

Commit

Permalink
Windows 10 Version 1507 - July 2017 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
oldnewthing committed Jul 27, 2017
1 parent f2eeceb commit ed02c72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ private void OnTaskCanceled(IBackgroundTaskInstance sender, BackgroundTaskCancel
serviceDeferral.Complete();
serviceDeferral = null;
}

if (connection != null)
{
connection.Dispose();
connection = null;
}
}

async void OnRequestReceived(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Namespace Global.RandomNumberService
serviceDeferral.Complete()
serviceDeferral = Nothing
End If
If connection IsNot Nothing Then
connection.Dispose()
connection = Nothing
End If
End Sub

Async Sub OnRequestReceived(sender As AppServiceConnection, args As AppServiceRequestReceivedEventArgs)
Expand Down

0 comments on commit ed02c72

Please sign in to comment.