|
@@ -33,8 +33,11 @@ func HookResident() {
|
|
|
|
|
|
for range time.Tick(time.Second * 30) {
|
|
|
if 0 == util.CountSessions() {
|
|
|
- logging.LogInfof("no active session, exit kernel process now")
|
|
|
- Close(false, 1)
|
|
|
+ time.Sleep(time.Second * 7)
|
|
|
+ if 0 == util.CountSessions() {
|
|
|
+ logging.LogInfof("no active session, exit kernel process now")
|
|
|
+ Close(false, 1)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|