Make call.End more solid

This commit is contained in:
Denis Makogon
2017-09-06 02:00:33 +03:00
parent d91d0fe79b
commit 6a541139a9
4 changed files with 11 additions and 16 deletions

View File

@@ -224,7 +224,9 @@ func (a *agent) Submit(callI Call) error {
// TODO if the context is timed out here we need to allocate some more time...
// right now this only works b/c the db isn't using the context
return call.End(ctx, err)
call.End(ctx, err)
return err
}
// getSlot must ensure that if it receives a slot, it will be returned, otherwise