acmiyaguchi / game.moonlight

Moonlight client for Kodi Games
18 stars 9 forks source link

Implement timeouts for http connections #5

Closed acmiyaguchi closed 9 years ago

acmiyaguchi commented 9 years ago

Connections are currently all blocking processes without timeouts, which while fine for a command line instance, causes the rest of Kodi to freeze.

acmiyaguchi commented 9 years ago

Worst case scenario, kodi will freeze up to 5 seconds. I'm not sure how to prevent functions from blocking the main ui updates, but this isn't too big of an issue.

garbear commented 9 years ago

i get the same freezes when launching netplay with an invalid server. I'll look into offloading the game client initialization to another thread in retroplayer