Browse Source

Merge pull request #406 from paullouisageneau/v0.12

Make impl::DataChannel destructor virtual
Paul-Louis Ageneau 4 years ago
parent
commit
2fd3da482a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/impl/datachannel.hpp

+ 1 - 1
src/impl/datachannel.hpp

@@ -36,7 +36,7 @@ struct PeerConnection;
 struct DataChannel : Channel, std::enable_shared_from_this<DataChannel> {
 	DataChannel(weak_ptr<PeerConnection> pc, uint16_t stream, string label, string protocol,
 	            Reliability reliability);
-	~DataChannel();
+	virtual ~DataChannel();
 
 	void close();
 	void remoteClose();