diff options
author | jsorg71 <jsorg71> | 2007-01-14 05:00:16 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2007-01-14 05:00:16 +0000 |
commit | 08e292faf4c20317c761749e812aa565659eb11b (patch) | |
tree | 6ace402867893531dc4c62fa52415fd6c62a24bc /libxrdp/libxrdp.c | |
parent | 728550e1b4b7660d73227d16c41fd7c6b51370b2 (diff) | |
download | xrdp-proprietary-08e292faf4c20317c761749e812aa565659eb11b.tar.gz xrdp-proprietary-08e292faf4c20317c761749e812aa565659eb11b.zip |
check if server is shutting down
Diffstat (limited to 'libxrdp/libxrdp.c')
-rw-r--r-- | libxrdp/libxrdp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libxrdp/libxrdp.c b/libxrdp/libxrdp.c index 091ff6a0..50029b45 100644 --- a/libxrdp/libxrdp.c +++ b/libxrdp/libxrdp.c @@ -74,11 +74,20 @@ libxrdp_process_data(struct xrdp_session* session) int cont; int rv; int code; + int term; + term = 0; cont = 1; rv = 0; - while ((cont || !session->up_and_running) && !session->term) + while ((cont || !session->up_and_running) && !term) { + if (session->is_term != 0) + { + if (session->is_term()) + { + term = 1; + } + } code = 0; if (xrdp_rdp_recv((struct xrdp_rdp*)session->rdp, session->s, &code) != 0) { @@ -104,7 +113,7 @@ libxrdp_process_data(struct xrdp_session* session) { DEBUG(("libxrdp_process_data returned non zero")); cont = 0; - session->term = 1; + term = 1; } break; default: |