5
0
Fork 0

Fix the _retry() method signature to accept an error object

The onError handler passed to the Stream's listen method is expected
to take an error argument.
pull/1/head
YoungSeok Yoon 2017-04-24 18:11:04 -07:00
parent 1dbdb5e90a
commit 43e31f6efe
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class EventSource extends Stream<Event> {
}
/// Retries until a new connection is established. Uses exponential backoff.
Future _retry() async {
Future _retry(dynamic e) async {
_readyState = EventSourceReadyState.CONNECTING;
// try reopening with exponential backoff
Duration backoff = _retryDelay;