Explorar el Código

Merge pull request #406 from paullouisageneau/v0.12

Make impl::DataChannel destructor virtual
Paul-Louis Ageneau hace 4 años
padre
commit
2fd3da482a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();