1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00

Forgot to unlisten to UserStore when unmounting

This commit is contained in:
Brett Sun 2015-11-13 13:33:12 +01:00
parent af58687572
commit 09812a1881

View File

@ -60,6 +60,8 @@ let MediaContainer = React.createClass({
}, },
componentWillUnmount() { componentWillUnmount() {
UserStore.unlisten(this.onChange);
window.clearInterval(this.state.timerId); window.clearInterval(this.state.timerId);
}, },