Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
5ef5c81e
Commit
5ef5c81e
authored
Feb 18, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed a bug when closing a client if no longer listening for new clients.
parent
8a5f8f25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
sockets.c
sockets.c
+2
-1
No files found.
sockets.c
View file @
5ef5c81e
...
@@ -330,7 +330,8 @@ rfbCloseClient(cl)
...
@@ -330,7 +330,8 @@ rfbCloseClient(cl)
{
{
FD_CLR
(
cl
->
sock
,
&
(
cl
->
screen
->
allFds
));
FD_CLR
(
cl
->
sock
,
&
(
cl
->
screen
->
allFds
));
if
(
cl
->
sock
==
cl
->
screen
->
maxFd
)
if
(
cl
->
sock
==
cl
->
screen
->
maxFd
)
while
(
!
FD_ISSET
(
cl
->
screen
->
maxFd
,
&
(
cl
->
screen
->
allFds
)))
while
(
cl
->
screen
->
maxFd
>
0
&&
!
FD_ISSET
(
cl
->
screen
->
maxFd
,
&
(
cl
->
screen
->
allFds
)))
cl
->
screen
->
maxFd
--
;
cl
->
screen
->
maxFd
--
;
shutdown
(
cl
->
sock
,
SHUT_RDWR
);
shutdown
(
cl
->
sock
,
SHUT_RDWR
);
close
(
cl
->
sock
);
close
(
cl
->
sock
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment