From 1f02f21aa734b7c5ac7d01a459dcfcf85f59a5b8 Mon Sep 17 00:00:00 2001 From: zolliker Date: Thu, 14 Nov 2024 09:07:06 +0100 Subject: [PATCH] hack with coruppted connections show error message only one --- conman.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/conman.c b/conman.c index d4cd8e3a..da01fa77 100644 --- a/conman.c +++ b/conman.c @@ -289,12 +289,16 @@ SConnection *SCCreateDummyConnection(SicsInterp * pSics) /*--------------------------------------------------------------------------*/ int VerifyConnection(SConnection * self) { + static SConnection *previous = NULL; if (!self) { Log(ERROR,"sys","%s","MAGICERROR: Invalid call to NULL connection"); return 0; } if (self->lMagic != CONMAGIC) { - Log(ERROR,"sys","%s","MAGICERROR: corrupted connection object"); + if (self != previous) { + previous = self; + Log(ERROR,"sys","%s","MAGICERROR: corrupted connection object"); + } return 0; } return 1;