summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xrdp/xrdp_login_wnd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index fe9e36fb..9cf14071 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -264,7 +264,13 @@ int xrdp_wm_login_notify(struct xrdp_bitmap* wnd,
wm->mod_handle = 0;
wm->mod_init = 0;
wm->mod_exit = 0;
- //wm->pro_layer->app_sck = 0;
+ }
+ else /* close connection log window if connection is ok */
+ {
+ if (wm->log_wnd != 0)
+ {
+ xrdp_bitmap_delete(wm->log_wnd);
+ }
}
}
if (!wm->pro_layer->term)