This commit is contained in:
Chris Lu 2019-04-21 13:33:32 -07:00
parent 440111a349
commit 5c411f3e5f

View file

@ -117,6 +117,7 @@ func (vc *vidMap) deleteLocation(vid uint32, location Location) {
for i, loc := range locations { for i, loc := range locations {
if loc.Url == location.Url { if loc.Url == location.Url {
vc.vid2Locations[vid] = append(locations[0:i], locations[i+1:]...) vc.vid2Locations[vid] = append(locations[0:i], locations[i+1:]...)
break
} }
} }