409953 return buffer.slice() instead of buffer.asReadOnlyBuffer() in ResourceCache to avoid using inefficent path in BufferUtil.writeTo

This commit is contained in:
Thomas Becker 2013-06-06 14:09:27 +02:00 committed by Joakim Erdfelt
parent 928275271d
commit 724e0c44d4
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ public class ResourceCache
} }
if (buffer==null) if (buffer==null)
return null; return null;
return buffer.asReadOnlyBuffer(); return buffer.slice();
} }