Browse Source

Session cleaner + img generation exit timeout--

Vova Tkach 5 years ago
parent
commit
140724a0fa
2 changed files with 2 additions and 2 deletions
  1. 1 1
      image.go
  2. 1 1
      session.go

+ 1 - 1
image.go

@@ -151,7 +151,7 @@ func image_stop(ch, stop chan bool) {
 		case ch <- true:
 			<-ch
 			return
-		case <-time.After(8 * time.Second):
+		case <-time.After(3 * time.Second):
 			fmt.Println("Image error: force exit by timeout after 8 seconds")
 			return
 		}

+ 1 - 1
session.go

@@ -57,7 +57,7 @@ func session_clean_stop(ch, stop chan bool) {
 		case ch <- true:
 			<-ch
 			return
-		case <-time.After(8 * time.Second):
+		case <-time.After(3 * time.Second):
 			fmt.Println("Session cleaner error: force exit by timeout after 8 seconds")
 			return
 		}