summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f6f11f6)
Use a NULL io pointer instead to indicate an idle connection.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
struct io_plan plan;
plan.pollflag = 0;
struct io_plan plan;
plan.pollflag = 0;
+ plan.state = IO_IO;
+ plan.io = NULL;
/* It might have finished, but we haven't called its finish() yet. */
if (conn->plan.state == IO_FINISHED)
return;
/* It might have finished, but we haven't called its finish() yet. */
if (conn->plan.state == IO_FINISHED)
return;
- assert(conn->plan.state == IO_IDLE);
+ assert(!conn->plan.io);
conn->plan = plan;
backend_wakeup(conn);
}
conn->plan = plan;
backend_wakeup(conn);
}