diff --git a/common/trans.c b/common/trans.c index 4253e6f0..31da1325 100644 --- a/common/trans.c +++ b/common/trans.c @@ -171,7 +171,7 @@ trans_get_wait_objs(struct trans *self, tbus *objs, int *count) /*****************************************************************************/ int APP_CC trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount, - tbus *wobjs, int *wcount) + tbus *wobjs, int *wcount, int *timeout) { if (self == 0) { diff --git a/common/trans.h b/common/trans.h index 34816eed..639e64d1 100644 --- a/common/trans.h +++ b/common/trans.h @@ -95,7 +95,7 @@ trans_get_wait_objs(struct trans* self, tbus* objs, int* count); int APP_CC trans_get_wait_objs_rw(struct trans *self, tbus *robjs, int *rcount, - tbus *wobjs, int *wcount); + tbus *wobjs, int *wcount, int *timeout); int APP_CC trans_check_wait_objs(struct trans* self); int APP_CC diff --git a/sesman/chansrv/chansrv.c b/sesman/chansrv/chansrv.c index 29e8c106..9752b7f3 100644 --- a/sesman/chansrv/chansrv.c +++ b/sesman/chansrv/chansrv.c @@ -1184,7 +1184,7 @@ channel_thread_loop(void *in_val) num_objs++; trans_get_wait_objs(g_lis_trans, objs, &num_objs); trans_get_wait_objs_rw(g_con_trans, objs, &num_objs, - wobjs, &num_wobjs); + wobjs, &num_wobjs, &timeout); trans_get_wait_objs(g_api_lis_trans, objs, &num_objs); if (g_api_con_trans_list != 0) diff --git a/vnc/vnc.c b/vnc/vnc.c index b89d90c6..ae9b192c 100644 --- a/vnc/vnc.c +++ b/vnc/vnc.c @@ -1407,7 +1407,7 @@ lib_mod_get_wait_objs(struct vnc *v, tbus *read_objs, int *rcount, if (v->trans != 0) { trans_get_wait_objs_rw(v->trans, read_objs, rcount, - write_objs, wcount); + write_objs, wcount, timeout); } } diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c index 4f869ab2..7d9c3a14 100644 --- a/xrdp/xrdp_process.c +++ b/xrdp/xrdp_process.c @@ -220,7 +220,7 @@ xrdp_process_main_loop(struct xrdp_process *self) xrdp_wm_get_wait_objs(self->wm, robjs, &robjs_count, wobjs, &wobjs_count, &timeout); trans_get_wait_objs_rw(self->server_trans, robjs, &robjs_count, - wobjs, &wobjs_count); + wobjs, &wobjs_count, &timeout); /* wait */ if (g_obj_wait(robjs, robjs_count, wobjs, wobjs_count, timeout) != 0) { diff --git a/xup/xup.c b/xup/xup.c index 40aae0a5..576fec88 100644 --- a/xup/xup.c +++ b/xup/xup.c @@ -1510,7 +1510,7 @@ lib_mod_get_wait_objs(struct mod *mod, tbus *read_objs, int *rcount, if (mod->trans != 0) { trans_get_wait_objs_rw(mod->trans, read_objs, rcount, - write_objs, wcount); + write_objs, wcount, timeout); } } return 0;