🔌 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 =
|
export const toggleAirDCPPSocketConnectionStatus =
|
||||||
(status: String, payload?: any) => async (dispatch) => {
|
(status: String, payload?: any) => async (dispatch) => {
|
||||||
console.log("sanul", status);
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case "connected":
|
case "connected":
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|||||||
@@ -79,11 +79,7 @@ const AirDCPPSocketContextProvider = ({ children }) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const socketConnectionInformation = await initializedAirDCPPSocket.connect(
|
const socketConnectionInformation = await initializedAirDCPPSocket.connect();
|
||||||
`${host.username}`,
|
|
||||||
`${host.password}`,
|
|
||||||
true,
|
|
||||||
);
|
|
||||||
|
|
||||||
// update the state with the new socket connection information
|
// update the state with the new socket connection information
|
||||||
persistSettings({
|
persistSettings({
|
||||||
|
|||||||
Reference in New Issue
Block a user