Skip to content

Commit

Permalink
make sure to close gzip stream
Browse files Browse the repository at this point in the history
  • Loading branch information
gwhalin committed Feb 8, 2010
1 parent 6423ceb commit 6a7fb63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/meetup/memcached/MemcachedClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ private boolean set( String cmdname, String key, Object value, Date expiry, Inte
GZIPOutputStream gos = new GZIPOutputStream( bos );
gos.write( val, 0, val.length );
gos.finish();
gos.close();

// store it and set compression flag
val = bos.toByteArray();
Expand Down

0 comments on commit 6a7fb63

Please sign in to comment.