matrix-rust-sdk icon indicating copy to clipboard operation
matrix-rust-sdk copied to clipboard

Allow sync to terminate

Open jsparber opened this issue 4 years ago • 1 comments

The SDK should stop syncing if the session is terminated from an other client. The termination makes the server returns 401 Unauthorized. Currently the sync response error is ignored and we try to sync again after a delay of 1s, see https://matrix-org.github.io/matrix-rust-sdk/src/matrix_sdk/client.rs.html#1692

jsparber avatar Mar 25 '21 16:03 jsparber

This is somewhat related to #115.

poljar avatar Mar 26 '21 11:03 poljar

Is this stll the case? It looks like the sync now returns errors and it happened to me that it terminated with an error (that was not this though).

FlixCoder avatar Oct 18 '22 08:10 FlixCoder

yeah, this was effectively fixed with https://github.com/matrix-org/matrix-rust-sdk/pull/1037

gnunicorn avatar Oct 18 '22 09:10 gnunicorn