summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Andersson <hean01@cendio.com>2018-01-29 14:10:38 +0100
committerGitHub <noreply@github.com>2018-01-29 14:10:38 +0100
commit54c38f7f62c2a0341132db007bf2dfcf6886c910 (patch)
tree62da6f986a76ccb7422a77cf3891dc96f0c5ad69
parentda5153c578ca21fd380cfa11bed044b743e17403 (diff)
parent2491a3c4365fe5d31d586dfd490c176bf54aeefb (diff)
downloadrdesktop-54c38f7f62c2a0341132db007bf2dfcf6886c910.zip
Merge pull request #240 from rdesktop/fix_issue228
Clear g_exit_mainloop before new connection
-rw-r--r--rdp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/rdp.c b/rdp.c
index 7b0fded..3ab3876 100644
--- a/rdp.c
+++ b/rdp.c
@@ -1810,9 +1810,6 @@ rdp_main_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason)
g_exit_mainloop = True;
}
} while(g_exit_mainloop == False);
-
- /* clear the exit main loop flag */
- g_exit_mainloop = False;
}
/* used in uiports and rdp_main_loop, processes the RDP packets waiting */
@@ -1901,6 +1898,7 @@ rdp_reset_state(void)
{
g_next_packet = NULL; /* reset the packet information */
g_rdp_shareid = 0;
+ g_exit_mainloop = False;
sec_reset_state();
}