IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16456


Ignore:
Timestamp:
Feb 13, 2008, 3:31:26 PM (18 years ago)
Author:
eugene
Message:

ignore garbage result from pclient

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c

    r13684 r16456  
    5656  /** host is up, need to parse message **/
    5757  p = memstr (buffer.buffer, "STATUS", buffer.Nbuffer);
    58   ASSERT (p != NULL, "missing STATUS in pclient message");
     58  // this condition means the message is garbage.  toss it and try again
     59  if (p == NULL) {
     60    PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
     61    PutJob (job, PCONTROL_JOB_BUSY, STACK_BOTTOM);
     62    FreeIOBuffer (&buffer);
     63    return (FALSE);
     64  }
    5965
    6066  sscanf (p, "%*s %s", string);
Note: See TracChangeset for help on using the changeset viewer.