mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
Forgot to unlisten to UserStore when unmounting
This commit is contained in:
parent
af58687572
commit
09812a1881
@ -60,6 +60,8 @@ let MediaContainer = React.createClass({
|
||||
},
|
||||
|
||||
componentWillUnmount() {
|
||||
UserStore.unlisten(this.onChange);
|
||||
|
||||
window.clearInterval(this.state.timerId);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user