'Process a URI request if we have one in the queue.'

def process_uri_request(self):

    if (len(self.pending_uri_requests) == 0):
        return
    uri = self.pending_uri_requests.pop()
    if (uri.startswith('file') or uri.startswith('magnet')):
        self.start_download_from_uri(uri)
