Skip to content

Commit

Permalink
#3761: Whitelist LoginPayloadResponse in UpstreamBridge#shouldHandle
Browse files Browse the repository at this point in the history
Required for #3758 to function correctly.
  • Loading branch information
Outfluencer authored Jan 22, 2025
1 parent 1265a99 commit 0aa2871
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,9 @@ public void handle(LoginPayloadResponse response) throws Exception
}
Preconditions.checkState( future != null, "Unexpected custom LoginPayloadResponse" );
future.complete( response.getData() );

// we should never pass this to the backend
throw CancelSendSignal.INSTANCE;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void writabilityChanged(ChannelWrapper channel) throws Exception
@Override
public boolean shouldHandle(PacketWrapper packet) throws Exception
{
return con.getServer() != null || packet.packet instanceof PluginMessage || packet.packet instanceof CookieResponse;
return con.getServer() != null || packet.packet instanceof PluginMessage || packet.packet instanceof CookieResponse || packet.packet instanceof LoginPayloadResponse;
}

@Override
Expand Down

0 comments on commit 0aa2871

Please sign in to comment.