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/CheckDoneHost.c

    r17476 r17477  
    4343  /** successful command, examine result **/
    4444  p = memstr (buffer[0].buffer, "STATUS", buffer[0].Nbuffer);
    45   ASSERT (p != NULL, "missing STATUS in pclient message (CheckDoneHost)");
     45  if (p == NULL) {
     46      if (DEBUG || VerboseMode()) gprint (GP_ERR, "missing STATUS in response; try again\n");
     47      PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
     48      return (FALSE);
     49  }
    4650
    4751  sscanf (p, "%*s %d", &status);
Note: See TracChangeset for help on using the changeset viewer.