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
|
@ -92,7 +92,10 @@ void VpnLogic::onBytesChanged(quint64 receivedData, quint64 sentData)
|
|||
void VpnLogic::onConnectionStateChanged(VpnProtocol::VpnConnectionState state)
|
||||
{
|
||||
qDebug() << "VpnLogic::onConnectionStateChanged" << VpnProtocol::textConnectionState(state);
|
||||
|
||||
if (uiLogic()->m_vpnConnection == NULL) {
|
||||
qDebug() << "VpnLogic::onConnectionStateChanged" << VpnProtocol::textConnectionState(state) << "невозможно, соединение отсутствует (уничтожено ранее)";
|
||||
return;
|
||||
}
|
||||
bool pbConnectEnabled = false;
|
||||
bool pbConnectChecked = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue