File tree 1 file changed +3
-1
lines changed
src/main/kotlin/com/wsl/symlinks/vfs
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ class WslSymlinksProvider(distro: String) {
74
74
internal val condition = myResourceLock.newCondition()
75
75
fun getValue (): String? {
76
76
var elapsed = 0
77
- while (value == null && elapsed < 500 ) {
77
+ while (value == null && elapsed < 5000 ) {
78
78
if (myResourceLock.tryLock(10 , TimeUnit .MILLISECONDS )) {
79
79
condition.await(10 , TimeUnit .MILLISECONDS )
80
80
myResourceLock.unlock()
@@ -132,6 +132,7 @@ class WslSymlinksProvider(distro: String) {
132
132
while (true ) {
133
133
try {
134
134
val a = this .queue.take()
135
+ if (a.value != null ) continue
135
136
mapped[a.id] = a
136
137
this .processWriter.write(a.request!! )
137
138
this .processWriter.flush()
@@ -177,6 +178,7 @@ class WslSymlinksProvider(distro: String) {
177
178
val path: String = file.path.replace(" ^//wsl\\ $/[^/]+" .toRegex(), " " ).replace(""" ^//wsl.localhost/[^/]+""" .toRegex(), " " )
178
179
val a = AsyncValue ()
179
180
a.request = " ${a.id} ;is-symlink;${path} \n "
181
+ this .queue.add(a)
180
182
while (a.getValue() == null ) {
181
183
if (! queue.contains(a)) {
182
184
this .queue.add(a)
You can’t perform that action at this time.
0 commit comments