about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--main.go5
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 !")