Skip to content

Commit

Permalink
Merge pull request neutrinolabs#175 from metalefty/bug-kill-disconnected
Browse files Browse the repository at this point in the history
Fix bug in kill disconnect sessions
  • Loading branch information
metalefty authored Dec 18, 2020
2 parents 278e60a + 6f9f496 commit 01d3116
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions module/rdpClientCon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1401,15 +1401,18 @@ rdpClientConInit(rdpPtr dev)
i = atoi(ptext);
if (i > 0)
{
dev->do_kill_disconnected = 1;
dev->disconnect_timeout_s = atoi(ptext);
}
}
ptext = getenv("XRDP_SESMAN_KILL_DISCONNECTED");
if (ptext != 0)
{
i = atoi(ptext);
if (i != 0)
if (i == 0)
{
dev->do_kill_disconnected = 0;
}
else
{
dev->do_kill_disconnected = 1;
}
Expand Down

0 comments on commit 01d3116

Please sign in to comment.