diff options
Diffstat (limited to 'rhimport')
-rw-r--r-- | rhimport/session.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rhimport/session.go b/rhimport/session.go index 13d31cc..450c818 100644 --- a/rhimport/session.go +++ b/rhimport/session.go @@ -211,7 +211,9 @@ func (self *Session) dispatchRequests() { case req := <-self.addDoneChan: req.response <- self.addDoneHandler(req.userdata, req.callback) case p := <-self.progressIntChan: - self.callProgressHandler(&p) + if self.state != SESSION_RUNNING { + self.callProgressHandler(&p) + } case r := <-self.doneIntChan: if self.state != SESSION_TIMEOUT { self.timer.Stop() |