Commit ccf2e33f authored by Niels Möller's avatar Niels Möller
Browse files

Don't loop over read.

Rev: src/read_packet.c:1.6
parent 743e9f0d
......@@ -20,8 +20,11 @@ int do_read_packet(struct read_handler **h,
struct abstract_read *read)
{
struct read_packet *closure = (struct read_packet *) *h;
#if 0
while(1)
{
#endif
switch(closure->state)
{
case WAIT_HEADER:
......@@ -184,7 +187,9 @@ int do_read_packet(struct read_handler **h,
default:
fatal("Internal error\n");
}
#if 0
}
#endif
}
struct read_handler *make_read_packet(struct abstract_write *handler,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment