Make command queue addition depend on connection protocol. Only reject for protocol zero.

r1732 | dcl | 2007-03-28 12:19:10 +1000 (Wed, 28 Mar 2007) | 2 lines
This commit is contained in:
Douglas Clowes
2007-03-28 12:19:10 +10:00
parent 3df6a5a8da
commit d738cb36b0
3 changed files with 28 additions and 3 deletions

View File

@@ -113,10 +113,12 @@
assert(self);
/* check for lock */
#if 0 /* DFC */
if(self->iLock)
{
return 0;
}
#endif
/* check Size */
if(self->iCount >= self->iMaxSize)
{
@@ -146,10 +148,12 @@
assert(self);
/* check for lock */
#if 0 /* DFC */
if(self->iLock)
{
return 0;
}
#endif
/* do not want 0 commands */
if(strlen(pCommand) < 1)
@@ -195,4 +199,9 @@
{
self->iLock = 0;
}
/*--------------------------------------------------------------------------*/
int CostaLocked(pCosta self)
{
return self->iLock;
}