aboutsummaryrefslogtreecommitdiffstats
path: root/core/bloombits/matcher.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/bloombits/matcher.go')
-rw-r--r--core/bloombits/matcher.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/bloombits/matcher.go b/core/bloombits/matcher.go
index a75f8c085..d38d4ba83 100644
--- a/core/bloombits/matcher.go
+++ b/core/bloombits/matcher.go
@@ -534,7 +534,10 @@ func (s *MatcherSession) Close() {
// Error returns any failure encountered during the matching session.
func (s *MatcherSession) Error() error {
- return s.err.Load().(error)
+ if err := s.err.Load(); err != nil {
+ return err.(error)
+ }
+ return nil
}
// AllocateRetrieval assigns a bloom bit index to a client process that can either