Invalidate tokens on fail
This commit is contained in:
parent
5bff609fb6
commit
5c11fb5424
1 changed files with 1 additions and 0 deletions
|
@ -53,6 +53,7 @@ public class SendFiles extends DataHandler {
|
|||
protected void deserializeFromIncomingData(FriendlyByteBuf buf, PacketSender responseSender, boolean fromClient) {
|
||||
token = readString(buf);
|
||||
if (!token.equals(RequestFiles.currentToken)) {
|
||||
RequestFiles.newToken();
|
||||
BCLib.LOGGER.error("Unrequested File Transfer!");
|
||||
receivedFiles = new ArrayList<>(0);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue