From 25d6df83c3cc5113c8831e5226a855e35249035f Mon Sep 17 00:00:00 2001
From: Thomas Holland <t.holland@bauer-kirch.de>
Date: Wed, 31 Mar 2021 18:16:58 +0200
Subject: [PATCH] Cancel the pending notify tomeout when stopping a query

---
 src/core/QueryInfo.ts | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/core/QueryInfo.ts b/src/core/QueryInfo.ts
index 2487ad81d5a..f70cf25a42a 100644
--- a/src/core/QueryInfo.ts
+++ b/src/core/QueryInfo.ts
@@ -234,6 +234,9 @@ export class QueryInfo {
     if (!this.stopped) {
       this.stopped = true;
 
+      // Cancel the pending notify timeout
+      this.reset();
+      
       this.cancel();
       // Revert back to the no-op version of cancel inherited from
       // QueryInfo.prototype.