From 3102b489c8db55594a79ba84a9789dc9cd65493f Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Fri, 20 Jan 2023 10:18:35 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8C=20Removed=20useless=20params=20fro?= =?UTF-8?q?m=20socket=20connect=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/actions/airdcpp.actions.tsx | 1 - src/client/context/AirDCPPSocket.tsx | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/client/actions/airdcpp.actions.tsx b/src/client/actions/airdcpp.actions.tsx index b4e99c1..42ced77 100644 --- a/src/client/actions/airdcpp.actions.tsx +++ b/src/client/actions/airdcpp.actions.tsx @@ -39,7 +39,6 @@ function sleep(ms: number): Promise { export const toggleAirDCPPSocketConnectionStatus = (status: String, payload?: any) => async (dispatch) => { - console.log("sanul", status); switch (status) { case "connected": dispatch({ diff --git a/src/client/context/AirDCPPSocket.tsx b/src/client/context/AirDCPPSocket.tsx index 9c3e696..ff783fe 100644 --- a/src/client/context/AirDCPPSocket.tsx +++ b/src/client/context/AirDCPPSocket.tsx @@ -79,11 +79,7 @@ const AirDCPPSocketContextProvider = ({ children }) => { ); }; - const socketConnectionInformation = await initializedAirDCPPSocket.connect( - `${host.username}`, - `${host.password}`, - true, - ); + const socketConnectionInformation = await initializedAirDCPPSocket.connect(); // update the state with the new socket connection information persistSettings({