INNER CODE UNIT · Go
oldest
instead-hub/instead · src/tiny/ifbot/ifbot/server.go:125
oldest = t - v.last_time
ctx = v
}
}
if ctx != nil && oldest > 60*5 {
log.Printf("Killing %d\n", ctx.id)
Stop(ctx)
}
}
func Stop(ctx *Instance) {
ctx.input <- ("save " + autosave(ctx))
log.Printf("%s\n", <-ctx.output)
ctx.input <- "quit"
log.Printf("%s\n", <-ctx.output)
Purge(ctx)
}