summaryrefslogtreecommitdiffstats
path: root/lib/network/connection.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network/connection.pm')
-rw-r--r--lib/network/connection.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection.pm b/lib/network/connection.pm
index 6efbe1b..e2ab8fe 100644
--- a/lib/network/connection.pm
+++ b/lib/network/connection.pm
@@ -164,7 +164,7 @@ sub guess_provider_settings {
my @providers_data = $self->get_providers;
my $locale_country = lang::c2name(ref($::o) && $::o->{locale}{country} || lang::read()->{country});
my $separator = $providers_data[1];
- $self->{provider_name} = find { /^\Q$locale_country$separator\E/ } sort(keys %{$providers_data[0]});
+ $self->{provider_name} ||= find { /^\Q$locale_country$separator\E/ } sort(keys %{$providers_data[0]});
}
sub set_provider {