From 59f650e3f8656dce449872897d07b89cd7d1c7ec Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 6 Feb 2014 10:15:27 +0200 Subject: [PATCH] small addition last night fix --- engine/balances.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/balances.go b/engine/balances.go index 8b6bfeb0d..c8e9217ba 100644 --- a/engine/balances.go +++ b/engine/balances.go @@ -343,6 +343,9 @@ func (b *Balance) DebitMoney(cc *CallCost, count bool, ub *UserBalance) error { newTs := ts.SplitByIncrement(incrementIndex) increment.paid = (&cc.Timespans).OverlapWithTimeSpans(paidTs, newTs, tsIndex) tsWasSplit = increment.paid + if !increment.paid { + break + } } } }