From a19e095f6e397870ec93a0d3433e5867bcb6e47a Mon Sep 17 00:00:00 2001 From: theolivenbaum Date: Mon, 27 Jun 2022 16:04:32 +0200 Subject: [PATCH] Fix wrong variable name --- ElectronNET.Host/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index e3e200a..6dbb507 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -253,7 +253,7 @@ function startSocketApiBridge(port) { } if (manifestJsonFile.socket.hasOwnProperty('socketPingTimeout') && manifestJsonFile.socket.pingTimeout > 0) { - maxHttpBufferSize = manifestJsonFile.pingTimeout * 1000; + pingTimeout = manifestJsonFile.pingTimeout * 1000; } if (manifestJsonFile.socket.hasOwnProperty('socketPingInterval') && manifestJsonFile.socket.pingInterval > 0) { @@ -261,7 +261,7 @@ function startSocketApiBridge(port) { } } - io.attach(server, { pingTimeout: pingTimeout, pingInterval: pingInterval, maxHttpBufferSize: maxHttpBufferSize }); + io.attach(server, { pingTimeout: pingTimeout, pingInterval: pingInterval, maxHttpBufferSize: socketBufferSize }); server.listen(port, 'localhost');