mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:41:17 -07:00
removed warning, shutdown connection explicitly
svn path=/trunk/kdenetwork/krfb/; revision=147625
This commit is contained in:
@@ -173,7 +173,7 @@ rfbCheckFds(rfbScreenInfoPtr rfbScreen,long usec)
|
||||
fd_set fds;
|
||||
struct timeval tv;
|
||||
struct sockaddr_in addr;
|
||||
int addrlen = sizeof(addr);
|
||||
unsigned int addrlen = sizeof(addr);
|
||||
char buf[6];
|
||||
const int one = 1;
|
||||
int sock;
|
||||
@@ -294,6 +294,7 @@ rfbCloseClient(cl)
|
||||
LOCK(cl->updateMutex);
|
||||
if (cl->sock != -1) {
|
||||
FD_CLR(cl->sock,&(cl->screen->allFds));
|
||||
shutdown(cl->sock, SHUT_RDWR);
|
||||
close(cl->sock);
|
||||
cl->sock = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user