(cherry picked from commit 5f259ef7fd9dd03aab38cbe07899d34b3ca917dd)
@@ -313,7 +313,7 @@ public class CryptoInputStream extends FilterInputStream implements
}
@Override
- public void close() throws IOException {
+ public synchronized void close() throws IOException {
if (closed) {
return;