Diff for /Amaya/amaya/AHTBridge.c between versions 1.52 and 1.53

version 1.52, 1998/03/11 17:24:43 version 1.53, 1998/03/17 16:21:48
Line 163  XtInputId          *id; Line 163  XtInputId          *id;
   
    me->reqStatus = HT_BUSY;     me->reqStatus = HT_BUSY;
   
      if ((me->mode & AMAYA_ASYNC)
          || (me->mode & AMAYA_IASYNC))
          /* set protection to avoid stopping an active request */
          me->mode |= AMAYA_ASYNC_SAFE_STOP;
   
          /* invoke the libwww callback */
    status = (*cbf) (socket, rqp, ops);     status = (*cbf) (socket, rqp, ops);
   
 #ifdef DEBUG_LIBWWW  #ifdef DEBUG_LIBWWW
    if (status != HT_OK)     if (status != HT_OK)
       HTTrace ("Callback.... returned a value != HT_OK");        HTTrace ("Callback.... returned a value != HT_OK");
Line 182  XtInputId          *id; Line 189  XtInputId          *id;
     * HT_END:     Request has ended      * HT_END:     Request has ended
     */      */
   
      if ((me->mode & AMAYA_ASYNC)
          || (me->mode & AMAYA_IASYNC))
          /* remove protection to avoid stopping an active request */
          me->mode &= ~AMAYA_ASYNC_SAFE_STOP;
   
    if (me->reqStatus == HT_ABORT) {     if (me->reqStatus == HT_ABORT) {
    /* Has the user stopped the request? */     /* Has the user stopped the request? */
      me->reqStatus = HT_WAITING;       me->reqStatus = HT_WAITING;
      me->mode &= ~AMAYA_ASYNC_SAFE_STOP;  
      StopRequest (me->docid);       StopRequest (me->docid);
      return (0);       return (0);
    }     }
Line 221  XtInputId          *id; Line 232  XtInputId          *id;
   
        if ((me->mode & AMAYA_ASYNC) || (me->mode & AMAYA_IASYNC))         if ((me->mode & AMAYA_ASYNC) || (me->mode & AMAYA_IASYNC))
          {           {
            AHTPrintPendingRequestStatus (me->docid, YES);  
            /* free the memory allocated for async requests */             /* free the memory allocated for async requests */
            AHTReqContext_delete (me);             AHTReqContext_delete (me);
              AHTPrintPendingRequestStatus (me->docid, YES);
          }            } 
   
        else if (me->reqStatus == HT_END &&         else if (me->reqStatus == HT_END &&

Removed from v.1.52  
changed lines
  Added in v.1.53


Webmaster