StopSync breaks gomatrix
MTRNord opened this issue · 1 comments
MTRNord commented
I call StopSync on the client closing. But If I do it it still first checks the Filter and tries to make a POST request. But this somehow ends into Sync err: msg=Failed to POST JSON to /_matrix/client/r0/user/filter code=400 wrapped=M_UNRECOGNIZED: Unrecognized request
. I am not sure if thats a timing issue or something but shouldn't the syncingID
be done earlier to prevent that bug?
MTRNord commented
How I log out of gomatrix: https://github.com/Nordgedanken/Morpheusv2/blob/0133070b59eb6045946ce9f8c6568efbbe1312af/pkg/ui/mainUI.go#L170-L176 the sync.Stop()
just calls StopSync() (see: https://github.com/Nordgedanken/Morpheusv2/blob/0133070b59eb6045946ce9f8c6568efbbe1312af/pkg/matrix/sync/sync.go#L98-L101 )