fix rpc_stream_connection destructor

This commit is contained in:
Daniel Larimer 2013-02-03 22:44:32 -05:00
parent 8067060d29
commit ad37d323f8

View file

@ -23,7 +23,6 @@ namespace fc { namespace json {
~impl() {
try {
self.cancel_pending_requests();
self.close();
_read_loop_complete.cancel();
_read_loop_complete.wait();
} catch ( ... ) {}
@ -64,6 +63,7 @@ namespace fc { namespace json {
rpc_stream_connection::rpc_stream_connection(const rpc_stream_connection& c):my(c.my){ }
rpc_stream_connection::~rpc_stream_connection(){
wlog( "%p", this );
close();
}
// the life of the streams must exceed the life of all copies