mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-12-04 05:40:02 -05:00
more cleanup
This commit is contained in:
parent
5fd3e72661
commit
bf955f6854
3 changed files with 15 additions and 13 deletions
|
|
@ -267,6 +267,8 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
|
||||
reloadInterval: null,
|
||||
|
||||
isShowingMyIdentitySection: true,
|
||||
isShowingAnnounceSection: true,
|
||||
isShowingCallsSection: true,
|
||||
|
|
@ -280,8 +282,12 @@ export default {
|
|||
};
|
||||
},
|
||||
beforeUnmount() {
|
||||
|
||||
clearInterval(this.reloadInterval);
|
||||
|
||||
// stop listening for websocket messages
|
||||
WebSocketConnection.off("message", this.onWebsocketMessage);
|
||||
|
||||
},
|
||||
mounted() {
|
||||
|
||||
|
|
@ -293,7 +299,7 @@ export default {
|
|||
|
||||
// fixme: clear interval on unmount
|
||||
// update info every few seconds
|
||||
setInterval(() => {
|
||||
this.reloadInterval = setInterval(() => {
|
||||
this.updateCallsList();
|
||||
}, 3000);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue