json_rpc_stream_connection destructor now calls close()
This commit is contained in:
parent
dff6b72ace
commit
8067060d29
1 changed files with 2 additions and 4 deletions
|
|
@ -22,12 +22,10 @@ namespace fc { namespace json {
|
|||
|
||||
~impl() {
|
||||
try {
|
||||
// slog( "..." );
|
||||
self.cancel_pending_requests();
|
||||
self.close();
|
||||
_read_loop_complete.cancel();
|
||||
// slog( "wait..." );
|
||||
_read_loop_complete.wait();
|
||||
// slog( "DONE ..." );
|
||||
} catch ( ... ) {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue