split to parts for sockets

This commit is contained in:
Martin/Geno 2018-12-30 08:33:50 +01:00
parent 17253d5555
commit f42ec9e116
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func main() {
pixelmatrix = getPart(pixelmatrix, partCount, partTotal, partBegin)
for s := 0; s < socketCount; s++ {
conn := createSocket(pixelmatrix)
conn := createSocket(getPart(pixelmatrix, 1, socketCount, s))
defer conn.Close()
}