lian / msfs2020-go

connect to microsoft flight simulator 2020 using golang
MIT License
389 stars 57 forks source link

Idea non exit #38

Open laurentL opened 4 years ago

laurentL commented 4 years ago

hi,

is it possible to make vfrmap wait for connection

    s, err := simconnect.New("msfs2020-go/vfrmap")
    if err != nil {
        print("Wait for connection...\n")
        time.Sleep(5*1000*1000*1000)
        goto startConnection

    }

and restart when the socket to MSFS was lost?

lian commented 4 years ago

good idea! will add it in next release