Skip to content

Commit a0746eb

Browse files
committed
Fix deadlock in trackfile
1 parent 0e31dc5 commit a0746eb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pkg/trackfiles/trackfile.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ func (t *Trackfile) Direction() brevity.Track {
162162

163163
// groundSpeed returns the approxmiate speed of the track along the ground (i.e. in two dimensions).
164164
func (t *Trackfile) groundSpeed() unit.Speed {
165-
t.lock.RLock()
166-
defer t.lock.RUnlock()
167165
if t.track.Len() < 2 {
168166
return 0
169167
}

0 commit comments

Comments
 (0)