M. Ángel Jimeno
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
cmd/commandfuncs.go
|
@ -19,6 +19,7 @@ import ( |
|
|
"context" |
|
|
"context" |
|
|
"crypto/rand" |
|
|
"crypto/rand" |
|
|
"encoding/json" |
|
|
"encoding/json" |
|
|
|
|
|
"errors" |
|
|
"fmt" |
|
|
"fmt" |
|
|
"io" |
|
|
"io" |
|
|
"io/ioutil" |
|
|
"io/ioutil" |
|
@ -119,7 +120,7 @@ func cmdStart(fl Flags) (int, error) { |
|
|
for { |
|
|
for { |
|
|
conn, err := ln.Accept() |
|
|
conn, err := ln.Accept() |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
if !strings.Contains(err.Error(), "use of closed network connection") { |
|
|
if !errors.Is(err, net.ErrClosed) { |
|
|
log.Println(err) |
|
|
log.Println(err) |
|
|
} |
|
|
} |
|
|
break |
|
|
break |
|
|