Skip to content

Commit 7753eee

Browse files
committed
FIxed fauulty background task
1 parent 3ff0df6 commit 7753eee

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Streckenbuch.Client/Services/RecordingServices.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ public void AddRecording(GeolocationPosition coordinate)
2626
{
2727
return;
2828
}
29-
30-
lock (_recordings)
31-
{
32-
_recordings.Add(new Recording(coordinate, DateTime.Now));
33-
}
29+
30+
_recordings.Add(new Recording(coordinate, DateTime.Now));
3431
}
3532

3633
public async Task StartWorkTrip(int trainNumber, int trainDriverNumber)

0 commit comments

Comments
 (0)