OpenVpn runtime error codes handling

This commit is contained in:
pokamest 2021-01-08 16:51:58 +03:00
parent f45fb442de
commit 861c71e3a8
11 changed files with 59 additions and 26 deletions

View file

@ -45,7 +45,7 @@ void Communicator::onLineAvailable(const QString& line)
emit messageReceived(message);
}
bool Communicator::connected() const
bool Communicator::isConnected() const
{
if (!m_localClient) {
return false;
@ -66,7 +66,7 @@ bool Communicator::writeData(const QString& data)
void Communicator::sendMessage(const Message& message)
{
if (!connected()) {
if (!isConnected()) {
return;
}
const QString data = message.toString();