From 5caca069ca5961dfb3f6d37d88c8adfababebd19 Mon Sep 17 00:00:00 2001 From: Perondas <114622@fhwn.ac.at> Date: Tue, 12 Apr 2022 10:40:40 +0200 Subject: [PATCH] Fixed runtime error on final notify --- lib/src/subscriber.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/subscriber.dart b/lib/src/subscriber.dart index c48dd8d5..18140c7b 100644 --- a/lib/src/subscriber.dart +++ b/lib/src/subscriber.dart @@ -267,7 +267,7 @@ class Subscriber extends EventManager implements Owner { dynamic reason = subsState.reason; dynamic retryAfter = null; - if (subsState.params && subsState.params['retry-after'] != null) { + if (subsState.params != null && subsState.params['retry-after'] != null) { retryAfter = parseInt(subsState.params['retry-after'], 10); }