Merge pull request #261 from GetStream/hotfix/disconnect
fixes #258: reset _connectCompleter on disconnect
This commit is contained in:
@@ -940,6 +940,8 @@ class StreamChatClient {
|
|||||||
await chatPersistenceClient?.disconnect(flush: flushChatPersistence);
|
await chatPersistenceClient?.disconnect(flush: flushChatPersistence);
|
||||||
chatPersistenceClient = null;
|
chatPersistenceClient = null;
|
||||||
|
|
||||||
|
_connectCompleter = null;
|
||||||
|
|
||||||
if (clearUser == true) {
|
if (clearUser == true) {
|
||||||
state.dispose();
|
state.dispose();
|
||||||
state = ClientState(this);
|
state = ClientState(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user