The function of a pontifical legate does not cease when the Apostolic See becomes vacant unless the pontifical letter establishes otherwise; it does cease, however, when the mandate has been fulfilled, when the legate has been notified of recall, or when the Roman Pontiff accepts the legate’s resignation.
Source: Code of Canon Law (Vatican.va)