air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
16.38k stars 772 forks source link

fix: close the `e.canExit` channel in the `start` function #477

Closed appleboy closed 8 months ago

appleboy commented 8 months ago

Resolve

Reproduce

main.go

package main

import "log"

func main() {
    log.Println("Hello World")
}

image

Unable to terminate the process.

xiantang commented 8 months ago

LGTM

xiantang commented 8 months ago

causing more test cases failed reverting

appleboy commented 8 months ago

@xiantang I will take it again.

xiantang commented 8 months ago

OK for now test case is all successful. plz rebase your code from master and try it again