hack with coruppted connections
show error message only one
This commit is contained in:
4
conman.c
4
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) {
|
||||
if (self != previous) {
|
||||
previous = self;
|
||||
Log(ERROR,"sys","%s","MAGICERROR: corrupted connection object");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user