Skip to content

Commit 78c2160

Browse files
clear WSL list before querying
1 parent 9844a8c commit 78c2160

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

client/hostinfo_win.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,6 +1670,7 @@ int HOST_INFO::get_host_info(bool init) {
16701670
// apparently if WSL is not present, querying for it pops up an alert.
16711671
// Avoid this if WSL disabled in config
16721672
//
1673+
wsl_distros.clear();
16731674
if (!cc_config.dont_use_wsl) {
16741675
OSVERSIONINFOEX osvi;
16751676
if (get_OSVERSIONINFO(osvi) && osvi.dwMajorVersion >= 10) {

0 commit comments

Comments
 (0)