From 000ca00913fb7e46d8283598868d8614d6b81151 Mon Sep 17 00:00:00 2001 From: alegrand Date: Mon, 27 Mar 2006 12:58:17 +0000 Subject: [PATCH] bug fix: cleaning should be done before returning... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1990 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/msg/gos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msg/gos.c b/src/msg/gos.c index da0b42528d..da0455d8db 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -75,11 +75,11 @@ static MSG_error_t __MSG_task_get_with_time_out_from_host(m_task_t * task, } else { __MSG_process_block(-1); } + h_simdata->sleeping[channel] = NULL; + first_time = 0; if(surf_workstation_resource->extension_public->get_state(h_simdata->host) == SURF_CPU_OFF) MSG_RETURN(MSG_HOST_FAILURE); - h_simdata->sleeping[channel] = NULL; - first_time = 0; /* OK, we should both be ready now. Are you there ? */ } -- 2.20.1