summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_process.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-01-07 01:21:09 +0000
committerjsorg71 <jsorg71>2005-01-07 01:21:09 +0000
commite14b8365fab73f97d2c55be746eb98a7044639d8 (patch)
tree58f849cdd8d8bbe7b994ea19f3d9edd77b7eb477 /xrdp/xrdp_process.c
parent9611a5f111a54492ff12f1c864736bec46c8d7cb (diff)
downloadxrdp-proprietary-e14b8365fab73f97d2c55be746eb98a7044639d8.tar.gz
xrdp-proprietary-e14b8365fab73f97d2c55be746eb98a7044639d8.zip
commit bitmap compres work and moved some files around
Diffstat (limited to 'xrdp/xrdp_process.c')
-rw-r--r--xrdp/xrdp_process.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/xrdp/xrdp_process.c b/xrdp/xrdp_process.c
index 0f8323da..21512800 100644
--- a/xrdp/xrdp_process.c
+++ b/xrdp/xrdp_process.c
@@ -66,7 +66,7 @@ int xrdp_process_main_loop(struct xrdp_process* self)
{
init_stream(s, 8192);
cont = 1;
- while (cont)
+ while (cont && !self->term)
{
if (xrdp_rdp_recv(self->rdp_layer, s, &code) != 0)
{
@@ -123,7 +123,7 @@ int xrdp_process_main_loop(struct xrdp_process* self)
{
break;
}
- if (self->wm->mod->mod_signal((int)self->wm->mod) != 0)
+ if (self->wm->mod->mod_signal(self->wm->mod) != 0)
{
break;
}
@@ -138,6 +138,13 @@ int xrdp_process_main_loop(struct xrdp_process* self)
}
}
}
+ if (self->wm->mod != 0)
+ {
+ if (self->wm->mod->mod_end != 0)
+ {
+ self->wm->mod->mod_end(self->wm->mod);
+ }
+ }
xrdp_rdp_disconnect(self->rdp_layer);
xrdp_rdp_delete(self->rdp_layer);
self->rdp_layer = 0;