fix query flush on logout
Merge pull request #1 from PlugLynn/fix-logout

fix query flush on logout