summaryrefslogtreecommitdiff
path: root/rhimport/session.go
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport/session.go')
-rw-r--r--rhimport/session.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/rhimport/session.go b/rhimport/session.go
index ece5303..b00be17 100644
--- a/rhimport/session.go
+++ b/rhimport/session.go
@@ -132,6 +132,10 @@ func (self *Session) run(timeout time.Duration) {
self.ctx.Cancel = self.cancelIntChan
go sessionRun(self.ctx, self.doneIntChan)
self.state = SESSION_RUNNING
+ if timeout > 3*time.Hour {
+ rhl.Printf("requested session timeout (%v) is to high - lowering to 3h", timeout)
+ timeout = 3 * time.Hour
+ }
self.timer.Reset(timeout)
return
}