Tried to get rid of crashes on sequential vpn turn on/off
This commit is contained in:
parent
56754d616b
commit
9ca8c66c47
6 changed files with 18 additions and 10 deletions
|
@ -34,8 +34,10 @@ VpnConnection::VpnConnection(QObject* parent) : QObject(parent),
|
|||
|
||||
VpnConnection::~VpnConnection()
|
||||
{
|
||||
m_vpnProtocol->deleteLater();
|
||||
m_vpnProtocol.clear();
|
||||
if (m_vpnProtocol != nullptr) {
|
||||
m_vpnProtocol->deleteLater();
|
||||
m_vpnProtocol.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void VpnConnection::onBytesChanged(quint64 receivedBytes, quint64 sentBytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue