Skip to content
Snippets Groups Projects
Commit d09a51a1 authored by Jean Coquet's avatar Jean Coquet
Browse files

try to restart socket if communication fails

parent 657213d4
Branches
Tags
No related merge requests found
static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.23 2013-01-18 09:53:50 jean_coquet Exp $";
static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.24 2013-01-18 16:29:48 jean_coquet Exp $";
//+=============================================================================
//
// file : GpibPrologix.cpp
......@@ -13,10 +13,10 @@ static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.23 2013-01-18 09:53:50 jea
//
// $Author: jean_coquet $
//
// $Revision: 1.23 $
// $Revision: 1.24 $
//
// $Revision: 1.23 $
// $Date: 2013-01-18 09:53:50 $
// $Revision: 1.24 $
// $Date: 2013-01-18 16:29:48 $
//
// SVN only:
// $HeadURL: $
......@@ -24,6 +24,11 @@ static const char *RcsId = "$Id: GpibPrologix.cpp,v 1.23 2013-01-18 09:53:50 jea
// CVS only:
// $Source: /users/chaize/newsvn/cvsroot/Communication/GpibPrologix/src/GpibPrologix.cpp,v $
// $Log: not supported by cvs2svn $
// Revision 1.23 2013/01/18 09:53:50 jean_coquet
// meilleur affichage en ligne de commande
// ajout dans status
// release
//
// Revision 1.22 2013/01/16 16:50:52 jean_coquet
// meilleur affichage en ligne de commande
//
......@@ -601,7 +606,7 @@ namespace GpibPrologix_ns
{
DEBUG_STREAM << "GpibPrologix::always_executed_hook <-" << std::endl;
if ((!sock) || (sock->connection_status () == yat::ClientSocket::CONNECTED_NO))
if ((!sock) || (sock->connection_status () == yat::ClientSocket::CONNECTED_NO) || consecutive_com_error_counter > 10)
{
if (!sock)
ERROR_STREAM << "GpibPrologix::always_executed_hook() sock = 0" << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment