Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit e4b39be

Browse files
authored
Fixed #1
1 parent 4d3e501 commit e4b39be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PeriodicBackgroundService/PeriodicBackgroundService.Android/PeriodicBackgroundService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public override void OnDestroy()
3434
{
3535
_isRunning = false;
3636

37-
if (_task != null)
37+
if (_task != null && _task.Status == TaskStatus.RanToCompletion)
3838
{
3939
_task.Dispose();
4040
}

0 commit comments

Comments
 (0)