Skip to content

Commit 13bea90

Browse files
authored
Merge pull request #651 from GeorgeTsagk/update-account-rpc-fix
accounts: fix service check in UpdateAccounts call
2 parents 8d7c53b + 89a494d commit 13bea90

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)