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); }