From 0753369b77c4c19b9571680cdc6eb2c2e7d02ed2 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 30 Oct 2013 20:25:50 +0000 Subject: [PATCH] mirror: Turn off the 'begin' timer before continuing --- src/mirror.c | 1 + 1 file changed, 1 insertion(+) 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 */