Explorar o código

Fixed issue where unauthenticated users couldn't use socket.io

Kristian Vos %!s(int64=4) %!d(string=hai) anos
pai
achega
5618319fa7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      backend/logic/io.js

+ 1 - 0
backend/logic/io.js

@@ -729,6 +729,7 @@ class _IOModule extends CoreClass {
 								});
 							reject(new Error("An error occurred while obtaining the session"));
 						});
+				else resolve();
 			})
 				.then(() => {
 					// call the job that calls the action, passing it the session, and the arguments socket.io passed us