fix rpc_stream_connection destructor
This commit is contained in:
parent
8067060d29
commit
ad37d323f8
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,6 @@ namespace fc { namespace json {
|
||||||
~impl() {
|
~impl() {
|
||||||
try {
|
try {
|
||||||
self.cancel_pending_requests();
|
self.cancel_pending_requests();
|
||||||
self.close();
|
|
||||||
_read_loop_complete.cancel();
|
_read_loop_complete.cancel();
|
||||||
_read_loop_complete.wait();
|
_read_loop_complete.wait();
|
||||||
} catch ( ... ) {}
|
} 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(const rpc_stream_connection& c):my(c.my){ }
|
||||||
rpc_stream_connection::~rpc_stream_connection(){
|
rpc_stream_connection::~rpc_stream_connection(){
|
||||||
wlog( "%p", this );
|
wlog( "%p", this );
|
||||||
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
// the life of the streams must exceed the life of all copies
|
// the life of the streams must exceed the life of all copies
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue