about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-06-01 03:29:50 +0200
committerEmile <hanemile@protonmail.com>2019-06-01 03:29:50 +0200
commitf0a406cffc4c6a317ad4572351fd1101a237ec94 (patch)
tree757d09443762c54c0818e2f489c541b61bb3bb0d /main.go
parente58418c3f27bfd9902617a3928458c8ac4da85fc (diff)
save
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 373731e..1dd02cb 100644
--- a/main.go
+++ b/main.go
@@ -188,12 +188,12 @@ func main() {
 			_, writeErr := connection.Write(completeBuffer.Bytes())
 			if writeErr != nil {
                 log.Println("Some kind of error occured (probaly the proken pipe thing...)")
+                time.Sleep(500 * time.Millisecond)
 			//	log.Fatal(writeErr)
 			}
 
             bar.Increment()
 			i++
-            time.Sleep(500 * time.Millisecond)
 		}
         bar.FinishPrint("Done writing !")