X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=07da6529c5f690929d678678489317d9b4d29d74;hp=a37bc7e23b817f72beb353cba8abd824b56e6725;hb=e8645edf5b100edeb5c0d0f3c3ad31a3853c1dbe;hpb=19d9318abf42debb15d833d4e56ab636893285c3 diff --git a/client.c b/client.c index a37bc7e2..07da6529 100644 --- a/client.c +++ b/client.c @@ -32,7 +32,7 @@ static void client_event_handler(struct task *t) PARA_NOTICE_LOG("%s\n", PARA_STRERROR(-t->ret)); if (t->ret != -E_HANDSHAKE_COMPLETE) { unregister_task(t); - p->eof = 1; + p->error = t->ret; return; } if (p->status == CL_SENDING) { @@ -47,7 +47,7 @@ static void client_event_handler(struct task *t) stdout_set_defaults(&sot); sot.buf = p->buf; sot.loaded = &p->loaded; - sot.input_error = &p->eof; + sot.input_error = &p->error; register_task(&sot.task); }