IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2008, 3:38:50 PM (18 years ago)
Author:
eugene
Message:

handle comm errors where pclient sends an orphaned prompt

File:
1 edited

Legend:

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

    r17476 r17477  
    5050  /** check on response to pclient command **/
    5151  p = memstr (buffer[0].buffer, "STATUS", buffer[0].Nbuffer);
    52   ASSERT (p != NULL, "missing STATUS in pclient message");
     52  if (p == NULL) {
     53      if (VerboseMode()) gprint (GP_ERR, "missing STATUS in response; try again\n");
     54      PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
     55      PutJob (job, PCONTROL_JOB_KILL, STACK_BOTTOM);
     56      return (FALSE);
     57  }
    5358  if (VerboseMode()) gprint (GP_ERR, "client message: %s\n", buffer[0].buffer);
    5459
Note: See TracChangeset for help on using the changeset viewer.