Fix: ineffective break statement

This commit is contained in:
Nils
2025-08-27 11:04:18 +02:00
parent 8d51c1c173
commit bee9b008fd
+2 -1
View File
@@ -361,10 +361,11 @@ func downloadTiles(ctx context.Context, conn *websocket.Conn, tilesToDownload []
ticker := time.NewTicker(time.Second / time.Duration(*rateLimit))
defer ticker.Stop()
DownloadLoop:
for _, tile := range tilesToDownload {
select {
case <-ctx.Done():
break
break DownloadLoop
case <-ticker.C:
tileChan <- tile
}