Do not throw from destructors, fatal_assert() instead.

This commit is contained in:
John Hood
2016-02-24 20:29:41 -05:00
parent 49a4106ae4
commit c964d40dd8
2 changed files with 3 additions and 6 deletions
+1 -3
View File
@@ -639,9 +639,7 @@ uint64_t Connection::timeout( void ) const
Connection::Socket::~Socket()
{
if ( close( _fd ) < 0 ) {
throw NetworkException( "close", errno );
}
fatal_assert ( close( _fd ) == 0 );
}
Connection::Socket::Socket( const Socket & other )