Skip to content

Commit 89a494d

Browse files
committed
accounts: fix service check in UpdateAccounts call
1 parent 8d7c53b commit 89a494d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accounts/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (s *InterceptorService) UpdateAccount(accountID AccountID, accountBalance,
305305

306306
// As this function updates account balances, we require that the
307307
// service is running before we execute it.
308-
if s.isRunningUnsafe() {
308+
if !s.isRunningUnsafe() {
309309
// This case can only happen if the service is disabled while
310310
// we we're processing a request.
311311
return nil, ErrAccountServiceDisabled

0 commit comments

Comments
 (0)