fix: cancel timer on dispose.
Signed-off-by: xsahil03x <xdsahil@gmail.com>
This commit is contained in:
@@ -1602,6 +1602,7 @@ class Channel {
|
||||
void dispose() {
|
||||
client.state.removeChannel('$cid');
|
||||
state?.dispose();
|
||||
_muteExpirationTimer?.cancel();
|
||||
_keyStrokeHandler.cancel();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user