diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/io/ozlibstream.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/io/ozlibstream.cpp b/src/io/ozlibstream.cpp index c62f58dace..eefe38a91c 100644 --- a/src/io/ozlibstream.cpp +++ b/src/io/ozlibstream.cpp @@ -113,15 +113,7 @@ void ozlibstream::close() // stream, set the `badbit`, then restore the exception mask. exceptions(std::ios_base::goodbit); setstate(std::ios_base::badbit); - try - { - exceptions(old_ex); - } - catch(...) - { - // If anything unexpected happens while restoring the exception mask, - // swallow it — we don't want this to throw here. - } + exceptions(old_ex); } } // namespace zlib |
