Stop vibration on stream end

This commit is contained in:
Cameron Gutman
2019-02-16 18:05:08 -08:00
parent 92b71588d0
commit 2f7087d6d3
3 changed files with 15 additions and 0 deletions

View File

@@ -1268,6 +1268,8 @@ public class Game extends Activity implements SurfaceHolder.Callback,
if (connecting || connected) {
connecting = connected = false;
controllerHandler.stop();
// Stop may take a few hundred ms to do some network I/O to tell
// the server we're going away and clean up. Let it run in a separate
// thread to keep things smooth for the UI. Inside moonlight-common,