diff options
author | Jay Sorg <jay.sorg@gmail.com> | 2013-12-04 15:27:49 -0800 |
---|---|---|
committer | Jay Sorg <jay.sorg@gmail.com> | 2013-12-04 15:27:49 -0800 |
commit | 3c218ad3f2e4bdfbaab0303d7edfa3106bfed46f (patch) | |
tree | 129bddcd739bf0161ad34c28dd3e51ae996c5161 /common | |
parent | 1deac46fdcad0c9e5d9b063350fdc0e5617855cc (diff) | |
download | xrdp-proprietary-3c218ad3f2e4bdfbaab0303d7edfa3106bfed46f.tar.gz xrdp-proprietary-3c218ad3f2e4bdfbaab0303d7edfa3106bfed46f.zip |
common: try to send data in trans_write_copy
Diffstat (limited to 'common')
-rw-r--r-- | common/trans.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/trans.c b/common/trans.c index bb349298..c418877e 100644 --- a/common/trans.c +++ b/common/trans.c @@ -471,6 +471,15 @@ trans_write_copy(struct trans *self) } temp_s->next_packet = (char *) wait_s; } + + /* try to send */ + if (send_waiting(self, 0) != 0) + { + /* error */ + self->status = TRANS_STATUS_DOWN; + return 1; + } + return 0; } |