Skip to content

Commit 54cb3e5

Browse files
committed
Fix accidental resource leak
1 parent fd2a3e9 commit 54cb3e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/in/dragonbra/javasteam/steam/CMClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ private void handleMulti(IPacketMsg packetMsg) {
379379
InputStream stream = payloadStream;
380380

381381
if (msgMulti.getBody().getSizeUnzipped() > 0) {
382-
stream = new GZIPInputStream(msgMulti.getBody().getMessageBody().newInput());
382+
stream = new GZIPInputStream(payloadStream);
383383
}
384384

385385
try (var br = new BinaryReader(stream)) {

0 commit comments

Comments
 (0)