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
7c9ef637
Commit
7c9ef637
authored
Aug 16, 2014
by
dscho
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16 from sandsmark/master
Merge patches from KDE/krfb
parents
42768640
012594b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
main.c
libvncserver/main.c
+7
-4
sockets.c
libvncserver/sockets.c
+3
-2
No files found.
libvncserver/main.c
View file @
7c9ef637
...
...
@@ -1061,10 +1061,13 @@ void rfbShutdownServer(rfbScreenInfoPtr screen,rfbBool disconnectClients) {
if
(
disconnectClients
)
{
rfbClientPtr
cl
;
rfbClientIteratorPtr
iter
=
rfbGetClientIterator
(
screen
);
while
(
(
cl
=
rfbClientIteratorNext
(
iter
))
)
if
(
cl
->
sock
>
-
1
)
/* we don't care about maxfd here, because the server goes away */
rfbCloseClient
(
cl
);
while
(
(
cl
=
rfbClientIteratorNext
(
iter
))
)
{
if
(
cl
->
sock
>
-
1
)
{
/* we don't care about maxfd here, because the server goes away */
rfbCloseClient
(
cl
);
rfbClientConnectionGone
(
cl
);
}
}
rfbReleaseClientIterator
(
iter
);
}
...
...
libvncserver/sockets.c
View file @
7c9ef637
...
...
@@ -122,8 +122,9 @@ rfbInitSockets(rfbScreenInfoPtr rfbScreen)
{
in_addr_t
iface
=
rfbScreen
->
listenInterface
;
if
(
rfbScreen
->
socketState
!=
RFB_SOCKET_INIT
)
return
;
if
(
rfbScreen
->
socketState
==
RFB_SOCKET_READY
)
{
return
;
}
rfbScreen
->
socketState
=
RFB_SOCKET_READY
;
...
...
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