Fix IsAborted() method

This commit is contained in:
Adam Dratwinski
2015-07-02 13:27:22 +02:00
parent 4cc2de6207
commit 74f5051cb5
2 changed files with 15 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func (c *Context) Next() {
// Returns if the currect context was aborted.
func (c *Context) IsAborted() bool {
return c.index == AbortIndex
return c.index >= AbortIndex
}
// Stops the system to continue calling the pending handlers in the chain.