| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6665881 commit 940a297
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -575,10 +575,6 @@ class QueryWrap : public AsyncWrap { | |||
| 575 | 575 | : AsyncWrap(channel->env(), req_wrap_obj, AsyncWrap::PROVIDER_QUERYWRAP), | |
| 576 | 576 | channel_(channel), | |
| 577 | 577 | trace_name_(name) { | |
| 578 | - // Make sure the channel object stays alive during the query lifetime. | ||
| 579 | - req_wrap_obj->Set(env()->context(), | ||
| 580 | - env()->channel_string(), | ||
| 581 | - channel->object()).Check(); | ||
| 582 | 578 | } | |
| 583 | 579 | ||
| 584 | 580 | ~QueryWrap() override { | |
@@ -735,7 +731,7 @@ class QueryWrap : public AsyncWrap { | |||
| 735 | 731 | UNREACHABLE(); | |
| 736 | 732 | } | |
| 737 | 733 | ||
| 738 | - ChannelWrap* channel_; | ||
| 734 | + BaseObjectPtr<ChannelWrap> channel_; | ||
| 739 | 735 | ||
| 740 | 736 | private: | |
| 741 | 737 | std::unique_ptr<ResponseData> response_data_; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments