From b008e3844c048e6aae929e972a1171161eda3593 Mon Sep 17 00:00:00 2001 From: Gwenaelle Abeille <gwenaelle.abeille@synchrotron-soleil.fr> Date: Thu, 10 May 2007 12:20:21 +0000 Subject: [PATCH] do stop only if running --- src/RetrigAO.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/RetrigAO.cpp b/src/RetrigAO.cpp index f8993d0..d63e876 100644 --- a/src/RetrigAO.cpp +++ b/src/RetrigAO.cpp @@ -1,4 +1,4 @@ -static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/InputOutput/ADLINK/RetrigAO/src/RetrigAO.cpp,v 1.8 2006-11-24 10:04:56 abeilleg Exp $"; +static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/InputOutput/ADLINK/RetrigAO/src/RetrigAO.cpp,v 1.9 2007-05-10 12:20:21 abeilleg Exp $"; //+============================================================================= // // file : RetrigAO.cpp @@ -13,9 +13,12 @@ static const char *RcsId = "$Header: /users/chaize/newsvn/cvsroot/InputOutput/AD // // $Author: abeilleg $ // -// $Revision: 1.8 $ +// $Revision: 1.9 $ // // $Log: not supported by cvs2svn $ +// Revision 1.8 2006/11/24 10:04:56 abeilleg +// correction on bug zero forcing. +// // Revision 1.7 2006/09/18 10:32:52 abeilleg // added internal software support. // @@ -1275,7 +1278,8 @@ void RetrigAO::stop() "RetrigAO::stop", this->set_internal_state() );*/ - this->stop_with_zero_forcing(); + if(this->get_state() == Tango::RUNNING) + this->stop_with_zero_forcing(); } //+------------------------------------------------------------------ -- GitLab