Skip to content

Commit 8be729c

Browse files
fabik111andreagilardoni
authored andcommitted
fix sync state
1 parent e7af91f commit 8be729c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/GenericConnectionHandler.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,10 @@
2222
static inline ConnectionHandler* instantiate_handler(NetworkAdapter adapter);
2323

2424
bool GenericConnectionHandler::updateSetting(const models::NetworkSetting& s) {
25-
26-
if(_ch != nullptr && _ch->_current_net_connection_state != NetworkConnectionState::INIT) {
25+
if(_ch != nullptr && _current_net_connection_state != NetworkConnectionState::INIT) {
2726
// If the internal connection handler is already being used and not in INIT phase we cannot update the settings
2827
return false;
29-
} else if(_ch != nullptr && _ch->_current_net_connection_state == NetworkConnectionState::INIT && _interface != s.type) {
28+
} else if(_ch != nullptr && _current_net_connection_state == NetworkConnectionState::INIT && _interface != s.type) {
3029
// If the internal connection handler is already being used and in INIT phase and the interface type is being changed
3130
// -> we need to deallocate the previously allocated handler
3231

0 commit comments

Comments
 (0)