Пример #1
0
 static public int DispatchEnd(IntPtr l)
 {
     try {
         CRequest self = (CRequest)checkSelf(l);
         self.DispatchEnd();
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Пример #2
0
    protected void LoadError(CTransport cloader, CRequest creq)
    {
        CRequest req = cloader.req;

#if     UNITY_EDITOR
        Debug.LogWarning("load Error : times=" + req.times + " url=" + req.url + " key= " + req.key);
#endif
        RemoveRequest(req);
        RemoveCallbacklist(creq);

        if (req.times < 2)
        {
            req.priority = req.priority - 10;
            this.AddReqToQueue(req);
            this.BeginQueue();
        }
        else
        {
            req.DispatchEnd();
            BeginQueue();
            CheckAllComplete();
        }
    }