diff --git a/src/brpc/channel.h b/src/brpc/channel.h index 0f1c0bbbdd..651c5084bb 100644 --- a/src/brpc/channel.h +++ b/src/brpc/channel.h @@ -153,7 +153,9 @@ friend class Controller; friend class SelectiveChannel; public: Channel(ProfilerLinker = ProfilerLinker()); - ~Channel(); + virtual ~Channel(); + + DISALLOW_COPY_AND_ASSIGN(Channel); // Connect this channel to a single server whose address is given by the // first parameter. Use default options if `options' is NULL.