diff options
| author | Erik Larkö <erik@mullvad.net> | 2017-09-26 11:08:39 +0200 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-09-27 07:32:55 +0200 |
| commit | ffff41f7395d5cd5ca8e80ab1e3d12238dc7f6d1 (patch) | |
| tree | 82b897b556e78dfc2e4d23ff379ef6b67100d423 /app/components | |
| parent | e3c78f5b93484bb2480049939cb81e2361fc8c58 (diff) | |
| download | mullvadvpn-ffff41f7395d5cd5ca8e80ab1e3d12238dc7f6d1.tar.xz mullvadvpn-ffff41f7395d5cd5ca8e80ab1e3d12238dc7f6d1.zip | |
Don't reconnect to the previously preferred server
Diffstat (limited to 'app/components')
| -rw-r--r-- | app/components/SelectLocation.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/components/SelectLocation.js b/app/components/SelectLocation.js index 5a1fb5d342..4f2218d08c 100644 --- a/app/components/SelectLocation.js +++ b/app/components/SelectLocation.js @@ -18,7 +18,9 @@ export default class SelectLocation extends Component { _selectedCell: ?HTMLElement; onSelect(name: string) { - this.props.onSelect(name); + if (!this.isSelected(name)) { + this.props.onSelect(name); + } } isSelected(server: string) { |
