Browse Source

Session cleaner timeout--

Vova Tkach 6 years ago
parent
commit
df3ed91484
1 changed files with 2 additions and 2 deletions
  1. 2 2
      session.go

+ 2 - 2
session.go

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