예제 #1
0
 internal void StartPoll(MegaRequest cause, string handle)
 {
     Util.StartThread(() =>
     {
         lock (pollingLock)
         {
             if (polling != null)
             {
                 polling.Cancel();
             }
             polling                = new PollingTransport(Auth);
             polling.Proxy          = Proxy;
             polling.tracking       = tracking;
             polling.ServerCommand += (s, e) =>
             {
                 if (ServerRequest != null)
                 {
                     ServerRequest(s, e);
                 }
             };
             polling.StartPoll(cause, handle);
         }
     }, "polling_transport_start");
 }