summaryrefslogtreecommitdiffstats
path: root/common/trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/trans.c')
-rw-r--r--common/trans.c9
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;
}