summaryrefslogtreecommitdiff
path: root/rhimport/core.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-15 13:55:52 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-15 13:55:52 (GMT)
commitf4801e4f33eb9683dacefdac0687eaa217b01213 (patch)
treee6c60b6b3c3bc2dc5155b02447cb61ff70309851 /rhimport/core.go
parentb7456c5beafeeba5357db25eac195b93313647fe (diff)
normalizer can now be canceled
Diffstat (limited to 'rhimport/core.go')
-rw-r--r--rhimport/core.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/rhimport/core.go b/rhimport/core.go
index d5d7549..cf51c54 100644
--- a/rhimport/core.go
+++ b/rhimport/core.go
@@ -264,3 +264,7 @@ func (ctx *Context) reportProgress(step int, stepName string, current, total flo
}
}
}
+
+func (ctx *Context) isCanceled() bool {
+ return ctx.Cancel != nil && len(ctx.Cancel) > 0
+}