io_remove(&client->io);
if (!client_does_custom_io(client)) {
- client->io = io_add(client->fd, IO_READ, client_input, client);
+ client->io = io_add_istream(client->input, client_input, client);
io_set_pending(client->io);
}
}
i_assert(client->io == NULL);
client->auth_waiting = TRUE;
if (!client_does_custom_io(client)) {
- client->io = io_add(client->fd, IO_READ,
- client_auth_input, client);
+ client->io = io_add_istream(client->input,
+ client_auth_input, client);
client_auth_input(client);
}
return;