asaskevich / EventBus

[Go] Lightweight eventbus with async compatibility for Go
MIT License
1.74k stars 220 forks source link

Improvment of the error catching - server side #31

Open stephan57160 opened 6 years ago

stephan57160 commented 6 years ago

I just had a look in client.go and found that there was commit dda45d48945963b6c834dd11b5cb254478ab2a88 to handle server start errors.

The same kind of fix applies on server.go too: If listen() fails, there is no need to start go http.Serve(l, nil)