mirror of https://github.com/zlatinb/muwire
no split on list
parent
30613fe530
commit
c0645b670e
|
@ -84,7 +84,7 @@ class MeshManager {
|
||||||
Pieces pieces = new Pieces(json.nPieces, Constants.DOWNLOAD_SEQUENTIAL_RATIO)
|
Pieces pieces = new Pieces(json.nPieces, Constants.DOWNLOAD_SEQUENTIAL_RATIO)
|
||||||
|
|
||||||
Mesh mesh = new Mesh(infoHash, pieces)
|
Mesh mesh = new Mesh(infoHash, pieces)
|
||||||
json.sources.split(",").each { source ->
|
json.sources.each { source ->
|
||||||
Persona persona = new Persona(new ByteArrayInputStream(Base64.decode(source)))
|
Persona persona = new Persona(new ByteArrayInputStream(Base64.decode(source)))
|
||||||
mesh.sources.add(persona)
|
mesh.sources.add(persona)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue