matrix-js-sdk
9c2a2902 - Fix bug where hibernating laptops fail to restart the event stream.

Comment changes are shownComment changes are hidden
Commit
9 years ago
Fix bug where hibernating laptops fail to restart the event stream. On some devices, the act of hibernating black holes the request so the success/failure callbacks never fire. This prevents a re-poll as that is done in the callbacks. To fix this, we add a local timer which, when it fires, will forcibly do a re-poll. The local timer has a timeout value several seconds more than the timeout= value (which should've returned by then).
Author
Parents
  • lib
    • File
      client.js