mirror: Turn off the 'begin' timer before continuing

This commit is contained in:
nick
2013-10-30 20:25:50 +00:00
parent 9d9ae40953
commit 0753369b77

View File

@@ -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 */