diff --git a/src/main/index.js b/src/main/index.js index 92e1bd5a..235811d1 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -137,6 +137,12 @@ ipcMain.on('start-user-streaming', (event, ac) => { event.sender.send('error-start-user-streaming', err) }) .then((account) => { + // Stop old user streaming + if (userStreaming !== null) { + userStreaming.stop() + userStreaming = null + } + userStreaming = new Streaming(account) userStreaming.startUserStreaming( (update) => {