summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_listen.c
diff options
context:
space:
mode:
Diffstat (limited to 'xrdp/xrdp_listen.c')
-rw-r--r--xrdp/xrdp_listen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c
index dd85d245..36980b15 100644
--- a/xrdp/xrdp_listen.c
+++ b/xrdp/xrdp_listen.c
@@ -204,7 +204,7 @@ xrdp_listen_fork(struct xrdp_listen* self, struct trans* server_trans)
xrdp_child_fork();
/* recreate the process done wait object, not used in fork mode */
/* close, don't delete this */
- g_tcp_close((int)(self->pro_done_event));
+ g_close_wait_obj(self->pro_done_event);
xrdp_listen_create_pro_done(self);
/* delete listener, child need not listen */
trans_delete(self->listen_trans);