summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKoichiro IWAO <meta@vmeta.jp>2017-11-29 14:34:31 +0900
committermetalefty <meta@vmeta.jp>2017-11-30 15:13:18 +0900
commitfb8f0adcc40d2f3e0cdfafa99fac1138c1de617b (patch)
tree9b3bdc23aaa5fceb6af3f8f7536e34436f13504b
parentd0c27a29048096ea3c9c4f15cdea6df7b4915ee0 (diff)
downloadxrdp-proprietary-fb8f0adcc40d2f3e0cdfafa99fac1138c1de617b.tar.gz
xrdp-proprietary-fb8f0adcc40d2f3e0cdfafa99fac1138c1de617b.zip
remove useless braces
-rw-r--r--xrdp/xrdp_listen.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/xrdp/xrdp_listen.c b/xrdp/xrdp_listen.c
index 259e9e98..81f602df 100644
--- a/xrdp/xrdp_listen.c
+++ b/xrdp/xrdp_listen.c
@@ -476,15 +476,12 @@ xrdp_listen_main_loop(struct xrdp_listen *self)
robjs[robjs_count++] = done_obj;
timeout = -1;
- /* if (self->listen_trans != 0) */
+ if (trans_get_wait_objs(self->listen_trans, robjs,
+ &robjs_count) != 0)
{
- if (trans_get_wait_objs(self->listen_trans, robjs,
- &robjs_count) != 0)
- {
- log_message(LOG_LEVEL_ERROR,"Listening socket is in wrong state, "
- "terminating listener");
- break;
- }
+ log_message(LOG_LEVEL_ERROR,"Listening socket is in wrong state, "
+ "terminating listener");
+ break;
}
/* wait - timeout -1 means wait indefinitely*/