🔌 Removed useless params from socket connect code

This commit is contained in:
2023-01-20 10:18:35 -08:00
parent 355812513b
commit 3102b489c8
2 changed files with 1 additions and 6 deletions

View File

@@ -39,7 +39,6 @@ function sleep(ms: number): Promise<NodeJS.Timeout> {
export const toggleAirDCPPSocketConnectionStatus =
(status: String, payload?: any) => async (dispatch) => {
console.log("sanul", status);
switch (status) {
case "connected":
dispatch({

View File

@@ -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({