🔌 Removed useless params from socket connect code
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user