Skip to content

Commit

Permalink
cmd/vinegar: remove log file timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
apprehensions committed Sep 27, 2024
1 parent 406dca7 commit 370cfde
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/vinegar/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ import (
)

const (
LogTimeout = 6 * time.Second
KillWait = 3 * time.Second
KillWait = 3 * time.Second
)

const (
Expand Down Expand Up @@ -338,12 +337,8 @@ func RobloxLogFile(pfx *wine.Prefix) (string, error) {
return "", fmt.Errorf("watch roblox log dir: %w", err)
}

t := time.NewTimer(LogTimeout)

for {
select {
case <-t.C:
return "", fmt.Errorf("roblox log file not found after %s", LogTimeout)
case e := <-w.Events:
if e.Has(fsnotify.Create) {
return e.Name, nil
Expand Down

0 comments on commit 370cfde

Please sign in to comment.