f80af68686
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/980 This also improves cleanliness in the tests to cancel/terminate timers when needed.