fix 100% cpu usage

This commit is contained in:
cjdenio committed 2026-09-10 11:43:37 -05:00
1 parent 1ae13edd35
commit 6a83b1c263
2 files changed
+6 -3

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
all: bin/crossword bin/ssh
all: bin/crossword bin/crossword-ssh
bin/crossword: main.go puz/puz.go game/game.go
go build -o $@ .
bin/ssh: ssh/main.go puz/puz.go game/game.go
bin/crossword-ssh: ssh/main.go puz/puz.go game/game.go
go build -o $@ ./ssh
+4 -1
View File
@@ -56,7 +56,10 @@ func main() {
})
for {
scanner.Scan()
ok := scanner.Scan()
if !ok {
break
}
buffer := scanner.Bytes()
exited := state.HandleInput(buffer)