diff options
Diffstat (limited to 'lib/network')
-rw-r--r-- | lib/network/connection/wireless.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm index 7027092..361da27 100644 --- a/lib/network/connection/wireless.pm +++ b/lib/network/connection/wireless.pm @@ -361,10 +361,9 @@ sub get_networks { sub refresh_roaming_ids { my ($self) = @_; #- needed when switching from non-roaming to roaming - #- to get wpa_supplicant network IDs - get_networks($self) if - $self->{control}{roaming} && - !any { defined $_->{id} } values %{$self->{networks}}; + #- or after restarting wpa_supplicant + #- to get fresh wpa_supplicant network IDs + get_networks($self) if $self->{control}{roaming}; } sub guess_network { |