Fix race condition that could cause multiple EventSource connections from the same client

This commit is contained in:
Deluan
2020-12-13 14:44:57 -05:00
parent 4f90fa9924
commit f2fd7ed016
2 changed files with 20 additions and 21 deletions
+1 -3
View File
@@ -40,9 +40,7 @@ const authProvider = {
// Avoid going to create admin dialog after logout/login without a refresh
config.firstTime = false
if (config.devActivityPanel) {
startEventStream().catch((e) =>
console.log('error setting up event stream:', e)
)
startEventStream()
}
return response
})