diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-07-15 13:55:52 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-07-15 13:55:52 (GMT) |
commit | f4801e4f33eb9683dacefdac0687eaa217b01213 (patch) | |
tree | e6c60b6b3c3bc2dc5155b02447cb61ff70309851 /rhimport/core.go | |
parent | b7456c5beafeeba5357db25eac195b93313647fe (diff) |
normalizer can now be canceled
Diffstat (limited to 'rhimport/core.go')
-rw-r--r-- | rhimport/core.go | 4 |
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 +} |