From e8a49348f2fec3e1e3c153c3f07943f1372d5f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Schr=C3=B6der?= Date: Thu, 18 Nov 2021 12:17:26 +0100 Subject: [PATCH] subscription: do not fail Monitor() on bad node (#491) This patch restores the behavior of the Monitor() call to the v0.1 behavior of only returning an error if the Monitor call itself failed. Fixes #491 --- subscription.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/subscription.go b/subscription.go index 5c8ab32d..bce2758f 100644 --- a/subscription.go +++ b/subscription.go @@ -122,12 +122,6 @@ func (s *Subscription) Monitor(ts ua.TimestampsToReturn, items ...*ua.MonitoredI return nil, err } - for _, result := range res.Results { - if status := result.StatusCode; status != ua.StatusOK { - return nil, status - } - } - // store monitored items // todo(fs): should we guard this with a lock? for i, item := range items {