From 91184ebc7172abdffcfcbd567d675ff273106261 Mon Sep 17 00:00:00 2001 From: ThatGuy Date: Wed, 28 Aug 2013 16:23:15 +0200 Subject: [PATCH] Fixed default port bug in the LSP --- lsp/main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lsp/main.js b/lsp/main.js index 0c8f3f82..c2d4b2ed 100644 --- a/lsp/main.js +++ b/lsp/main.js @@ -614,8 +614,13 @@ }; $('input').each(function(){ - newprotocol[$(this).attr('id').split('-')[2]] = $(this).val();; + + if($(this).val() != '') + { + newprotocol[$(this).attr('id').split('-')[2]] = $(this).val(); + } }); + newprotocol.online = -1; if (streamname == 'new') { settings.settings.config.protocols.push(newprotocol);