IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 10, 2008, 3:28:11 PM (18 years ago)
Author:
eugene
Message:

adding some ASSERTS to catch a thief

File:
1 edited

Legend:

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

    r20047 r20059  
    3636  if ((status1 == PCLIENT_HUNG) || (status2 == PCLIENT_HUNG)) {
    3737    PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
     38    ASSERT (job[0].host, "host not set for job");
    3839    PutJob (job, PCONTROL_JOB_DONE, STACK_BOTTOM);
    3940    return (FALSE);
     
    4546  host[0].job = NULL;
    4647  PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
     48
     49  ASSERT ((job[0].state == PCONTROL_JOB_EXIT) || (job[0].state == PCONTROL_JOB_CRASH), "unexpected job state");
     50
    4751  PutJob (job, job[0].state, STACK_BOTTOM);
    4852
Note: See TracChangeset for help on using the changeset viewer.