1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-19 10:10:40 +03:00

Fix auto refreshing of client manager

This commit is contained in:
Yihong Wu 2021-09-28 20:15:41 +08:00
parent 3a2d588722
commit 582a739179
2 changed files with 1 additions and 11 deletions

View File

@ -5450,8 +5450,6 @@ void CmMainWindowOnCommandEx(HWND hWnd, WPARAM wParam, LPARAM lParam, bool easy)
CmStopUacHelper(helper); CmStopUacHelper(helper);
Free(name); Free(name);
CmRefresh(hWnd);
} }
break; break;
case CMD_DELETE_VLAN: case CMD_DELETE_VLAN:
@ -5480,8 +5478,6 @@ void CmMainWindowOnCommandEx(HWND hWnd, WPARAM wParam, LPARAM lParam, bool easy)
} }
Free(s); Free(s);
} }
CmRefresh(hWnd);
} }
break; break;
case CMD_ENABLE_VLAN: case CMD_ENABLE_VLAN:
@ -5501,8 +5497,6 @@ void CmMainWindowOnCommandEx(HWND hWnd, WPARAM wParam, LPARAM lParam, bool easy)
CALL(hWnd, CcEnableVLan(cm->Client, &c)); CALL(hWnd, CcEnableVLan(cm->Client, &c));
} }
Free(s); Free(s);
CmRefresh(hWnd);
} }
} }
break; break;
@ -5523,8 +5517,6 @@ void CmMainWindowOnCommandEx(HWND hWnd, WPARAM wParam, LPARAM lParam, bool easy)
CALL(hWnd, CcDisableVLan(cm->Client, &c)); CALL(hWnd, CcDisableVLan(cm->Client, &c));
} }
Free(s); Free(s);
CmRefresh(hWnd);
} }
} }
break; break;
@ -5560,8 +5552,6 @@ void CmMainWindowOnCommandEx(HWND hWnd, WPARAM wParam, LPARAM lParam, bool easy)
CmStopUacHelper(helper); CmStopUacHelper(helper);
} }
Free(s); Free(s);
CmRefresh(hWnd);
} }
} }
break; break;

View File

@ -5410,7 +5410,7 @@ NOTIFY_CLIENT *CcConnectNotify(REMOTE_CLIENT *rc)
NOTIFY_CLIENT *n; NOTIFY_CLIENT *n;
SOCK *s; SOCK *s;
char tmp[MAX_SIZE]; char tmp[MAX_SIZE];
bool rpc_mode = false; UINT rpc_mode = 0;
UINT port; UINT port;
// Validate arguments // Validate arguments
if (rc == NULL || rc->Rpc == NULL || rc->Rpc->Sock == NULL) if (rc == NULL || rc->Rpc == NULL || rc->Rpc->Sock == NULL)