about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
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 !")