Merge pull request #240 from rdesktop/fix_issue228
Clear g_exit_mainloop before new connection
This commit is contained in:
commit
54c38f7f62
4
rdp.c
4
rdp.c
@ -1810,9 +1810,6 @@ rdp_main_loop(RD_BOOL * deactivated, uint32 * ext_disc_reason)
|
|||||||
g_exit_mainloop = True;
|
g_exit_mainloop = True;
|
||||||
}
|
}
|
||||||
} while(g_exit_mainloop == False);
|
} 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 */
|
/* 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_next_packet = NULL; /* reset the packet information */
|
||||||
g_rdp_shareid = 0;
|
g_rdp_shareid = 0;
|
||||||
|
g_exit_mainloop = False;
|
||||||
sec_reset_state();
|
sec_reset_state();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user