The Store variable was written to _after_ the server started which was causing the race. We simply move it to before we start the server. While we are here, we fix yet another race condition which was unrelated, but doing it in one sweep. This was related to the user props access. When a user is updated, there was 3 ws events that get sent out, 2 were deep-copied whereas 1 was not. This led to race condition in postgres binary-param mode where we were trying to set the user props. https://mattermost.atlassian.net/browse/MM-61700
10 KiB
10 KiB