diff --git a/src/mirror.c b/src/mirror.c index 3a7d1fa..8e3b312 100644 --- a/src/mirror.c +++ b/src/mirror.c @@ -706,6 +706,7 @@ void mirror_begin_cb( struct ev_loop *loop, ev_timer *w, int revents ) if ( ctrl->serve->allocation_map_built || ctrl->serve->allocation_map_not_built ) { info( "allocation map builder is finished, beginning migration" ); + ev_timer_stop( loop, w ); /* Start by writing xfer 0 to the listener */ ev_io_start( loop, &ctrl->write_watcher ); /* We want to timeout during the first write as well as subsequent ones */