* Initialize missing fields of Tunnel & Bluetooth classes
* Add missing virtual destructor of IEnctyptedTunnel
Change-Id: I06e14167b4646897d2c2a382960d0fd9332d222d
Starting,
Awaiting,
} m_scanState = ScanState::NotInProgress;
- guint m_scanCancellationCallbackId;
+ guint m_scanCancellationCallbackId = 0;
std::mutex m_scanMutex;
CallbackType m_scanCallback = nullptr; // used only in the main thread
// May be called from the other thread.
virtual void Cancel() = 0;
+
+ // Needed as derived classes are handled with pointers to this interface
+ virtual ~IEncryptedTunnel(){};
};
class EncryptedTunnel : public IEncryptedTunnel {
: m_ws(ws),
m_context(nullptr),
m_connection(nullptr),
+ m_writtenBytesNum(0),
m_state(State::DISCONNECTED),
m_cancelled(false)
{