mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
Merge PR #705: src/Cedar/Client.c: remove not needed condition
This commit is contained in:
commit
93c962fb68
@ -1869,24 +1869,21 @@ BEGIN_LISTENER:
|
|||||||
// If the port cannot be opened
|
// If the port cannot be opened
|
||||||
if (cn_next_allow <= Tick64())
|
if (cn_next_allow <= Tick64())
|
||||||
{
|
{
|
||||||
if (cursor_changed || cn_listener->Halt)
|
if (cursor_changed)
|
||||||
{
|
{
|
||||||
if (cursor_changed)
|
// It can be judged to have the rights to open the port
|
||||||
{
|
// since the mouse cursor is moving.
|
||||||
// It can be judged to have the rights to open the port
|
// So, take over the port which is owned by other process forcibly
|
||||||
// since the mouse cursor is moving.
|
CncReleaseSocket();
|
||||||
// So, take over the port which is owned by other process forcibly
|
}
|
||||||
CncReleaseSocket();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cn_listener->Halt)
|
if (cn_listener->Halt)
|
||||||
{
|
{
|
||||||
ReleaseListener(cn_listener);
|
ReleaseListener(cn_listener);
|
||||||
cn_listener = NULL;
|
cn_listener = NULL;
|
||||||
|
|
||||||
Unlock(cn_listener_lock);
|
Unlock(cn_listener_lock);
|
||||||
goto BEGIN_LISTENER;
|
goto BEGIN_LISTENER;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user