We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86fb4e8 commit b71efceCopy full SHA for b71efce
1 file changed
OpenDreamClient/Resources/DreamResourceManager.cs
@@ -98,7 +98,7 @@ private void RxBrowseResource(MsgBrowseResource message) {
98
}
99
100
private byte[] GetFileHash(ResPath path) {
101
- var stream = _resourceManager.UserData.OpenRead(path);
+ using var stream = _resourceManager.UserData.OpenRead(path);
102
Span<byte> filebytes = new(new byte[stream.Length]);
103
stream.ReadToEnd(filebytes);
104
return CryptoGenericHashBlake2B.Hash(32, filebytes, ReadOnlySpan<byte>.Empty);
0 commit comments