From ff1bd84e7e6165e263f8f0c5b4f6cd0093f76b7b Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 8 Nov 2017 00:34:59 +1100 Subject: [PATCH] Fix #205 --- torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent.go b/torrent.go index 5eaa3d42..0060cff1 100644 --- a/torrent.go +++ b/torrent.go @@ -997,7 +997,7 @@ func (t *Torrent) getConnPieceInclination() []int { return rand.Perm(t.numPieces()) } pieceInclinationsReused.Add(1) - return _ret.([]int) + return *_ret.(*[]int) } func (t *Torrent) putPieceInclination(pi []int) { -- 2.48.1