xwp / stream

🗄️ Stream plugin for WordPress

Home Page:https://wordpress.org/plugins/stream/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switching user is incorrectly tracked

kucrut opened this issue · comments

Related to #434, when switching user using the User Switching plugin, Stream only tracks the logging out part of the first user, when it should be tracking the logging in part of the second user. Also, when switching back, Stream doesn't log anything.

Seems like user-switching plugin does it magic before Stream registers any connectors, racing condition on the 'init' hook.

On #513 , changing the priority of the init action in user-switching plugin to 20 here made the it log login/logout actions when i use 'Switch to/off' functions.