Browse Source

Fixed issue with playlists events not working on station page

Kristian Vos 4 years ago
parent
commit
265e3a1b66
2 changed files with 2 additions and 2 deletions
  1. 2 1
      backend/logic/io.js
  2. 0 1
      frontend/src/pages/Station/index.vue

+ 2 - 1
backend/logic/io.js

@@ -141,8 +141,9 @@ class _IOModule extends CoreClass {
 			const sockets = [];
 
 			if (ns) {
-				return async.each(
+				return async.eachLimit(
 					Object.keys(ns.connected),
+					1,
 					(id, next) => {
 						const { session } = ns.connected[id];
 						CacheModule.runJob(

+ 0 - 1
frontend/src/pages/Station/index.vue

@@ -443,7 +443,6 @@ export default {
 		io.getSocket(socket => {
 			this.socket = socket;
 
-			io.removeAllListeners();
 			if (this.socket.connected) this.join();
 			io.onConnect(this.join);
 			this.socket.emit("stations.existsByName", this.stationName, res => {