diff options
author | Emile <hanemile@protonmail.com> | 2019-06-01 03:29:47 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-06-01 03:29:47 +0200 |
commit | e58418c3f27bfd9902617a3928458c8ac4da85fc (patch) | |
tree | 55a91398a0f0da99b75d2e2651b5ce1eaf0e503d | |
parent | 92ef99305664f2c4dd66dd5f3a85d3dffc965bdf (diff) |
save
-rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go index 49efbf1..373731e 100644 --- a/main.go +++ b/main.go @@ -10,6 +10,7 @@ import ( "log" "net" "os" + "time" _ "image/jpeg" ) @@ -186,11 +187,13 @@ func main() { // actual write _, writeErr := connection.Write(completeBuffer.Bytes()) if writeErr != nil { - log.Fatal(writeErr) + log.Println("Some kind of error occured (probaly the proken pipe thing...)") + // log.Fatal(writeErr) } bar.Increment() i++ + time.Sleep(500 * time.Millisecond) } bar.FinishPrint("Done writing !") |