Skip to content

Commit cf9279c

Browse files
committed
🔀 Merge branch 'fix/watcher-return' into 'dev'
[client] Ensure that the watcher returns. See merge request perun/go-perun!397
2 parents 3f81e47 + 46a7394 commit cf9279c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client/watch.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ func (c *Channel) Watch(h AdjudicatorEventHandler) error {
7777
go h.HandleAdjudicatorEvent(e)
7878
}
7979

80-
log.Debugf("Subscription closed: %v", sub.Err())
81-
return errors.WithMessage(sub.Err(), "subscription closed")
80+
err = sub.Err()
81+
log.Debugf("Subscription closed: %v", err)
82+
return errors.WithMessage(err, "subscription closed")
8283
}
8384

8485
// Register registers the channel on the adjudicator.

0 commit comments

Comments
 (0)