Skip to content

Commit 1176ed5

Browse files
committed
Verwende InvokeAsync für die Aktualisierung der Position und das Löschen der Geolocation-Beobachtung.
1 parent eec48e1 commit 1176ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Streckenbuch.Client/Components/Fahren/FahrenTimeLine.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ else
9696
return;
9797
}
9898

99-
FahrenPositionService.UpdatePosition(position).ConfigureAwait(false);
99+
InvokeAsync(() => FahrenPositionService.UpdatePosition(position));
100100
}
101101

102102
public void Dispose()
103103
{
104104
if (_watchTaskId is not null)
105105
{
106-
GeolocationService.ClearWatchAsync(_watchTaskId.Value).ConfigureAwait(false);
106+
InvokeAsync(() => GeolocationService.ClearWatchAsync(_watchTaskId.Value));
107107
}
108108
}
109109

0 commit comments

Comments
 (0)