     {
         let offset = (num == 0 ? storage.count : num) / 20 * 20
         let params:[String:Any] = ["token" : self.token, "msg_id" : command.rawValue, "param" : offset]
-        _sentQueue.append(params)
+        _taskQueue.append(params)
     }
     
     func captureImage()
     {
         let params:[String:Any] = ["token" : self.token, "msg_id": RemoteCommand.captureImage.rawValue]
-        _sentQueue.append(params)
+        _taskQueue.append(params)
     }
     
     func captureVideo()
     {
         let params:[String:Any] = ["token" : self.token, "msg_id": RemoteCommand.captureVideo.rawValue]
-        _sentQueue.append(params)
-    }
-}
+        _taskQueue.append(params)
+    }
+}

    
    func tcpUpdate(session: TCPSession)
    {
        if _sentQueue.count > 0 && ready
        {
            _session.send(data: _sentQueue.remove(at: 0))
        }
    }
    

        fetchVersion()
        query(type: "app_status")
        query(type: "date_time")
        fetchAssetPaths()
    }
    
    private var _taskQueue:[[String:Any]] = []
    func query(type:String = "date_time")
    {
        let params:[String:Any] = ["token" : self.token, "msg_id" : RemoteCommand.query.rawValue, "type" : type]
