Show
Ignore:
Timestamp:
09/10/10 22:34:43 (21 months ago)
Author:
Antti-Juhani Kaijanaho <antti-juhani@…>
Children:
99057e4d73dbb905f06f5ccc4ea49708b8aaa0a8
Parents:
c53e53f1cb0d542e5c931555a591d2589c033006
git-committer:
Antti-Juhani Kaijanaho <antti-juhani@…> (09/10/10 22:34:43)
Message:

Exception-proof destructors.

Hopefully addresses #78.

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tls/session.hh

    r08f5bd7 r81c6e32  
    256256                        {} 
    257257 
    258                 ~session() { impl->kill(); } 
     258                ~session() { 
     259                        try 
     260                        { 
     261                                impl->kill(); 
     262                        } 
     263                        catch (std::exception) 
     264                        {} 
     265                } 
    259266 
    260267                void kill() { impl->kill(); }