summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-05-06 22:22:01 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-05-06 22:22:01 (GMT)
commit10f69ccb656abe346b73448408a0e5c3a962decf (patch)
treeb94727f3c617412dc60d4ec4a58eaf56d293ee15 /rhimport
parentdde276910e0c7b12f5e5e5797bc4e9dedac4e7d3 (diff)
only send progress messages when import is running
Diffstat (limited to 'rhimport')
-rw-r--r--rhimport/session.go4
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()