Revision e447b1a6

b/buffered_file.c
230 230
{
231 231
    QEMUFileBuffered *s = opaque;
232 232

  
233
    if (s->has_error)
233
    if (s->has_error) {
234
        buffered_close(s);
234 235
        return;
236
    }
235 237

  
236 238
    qemu_mod_timer(s->timer, qemu_get_clock(rt_clock) + 100);
237 239

  
b/migration.c
316 316
    if (ret == -1)
317 317
        ret = -(s->get_error(s));
318 318

  
319
    if (ret == -EAGAIN)
319
    if (ret == -EAGAIN) {
320 320
        qemu_set_fd_handler2(s->fd, NULL, NULL, migrate_fd_put_notify, s);
321
    } else if (ret < 0) {
322
        if (s->mon) {
323
            monitor_resume(s->mon);
324
        }
325
        s->state = MIG_STATE_ERROR;
326
    }
321 327

  
322 328
    return ret;
323 329
}

Also available in: Unified diff