Browse Source

Don't panic for legitimate file errors (fixes #55)

Jakob Borg 11 years ago
parent
commit
14b3791b2b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      model/filequeue.go

+ 2 - 1
model/filequeue.go

@@ -184,7 +184,8 @@ func (q *FileQueue) Done(file string, offset int64, data []byte) {
 			return
 		}
 	}
-	panic("unreachable")
+
+	// We found nothing, might have errored out already
 }
 
 func (q *FileQueue) QueuedFiles() (files []string) {