Use LiInterruptConnection to prevent long waits for RTSP timeout

This commit is contained in:
Cameron Gutman committed 2017-05-21 12:25:04 -07:00
1 parent 7651ce5e84
commit 5d90950591
4 files changed
+11 -1

No files matched your search

@@ -63,6 +63,9 @@ public class NvConnection {
}
public void stop() {
// Interrupt any pending connection. This is thread-safe.
MoonBridge.interruptConnection();
// Moonlight-core is not thread-safe with respect to connection start and stop, so
// we must not invoke that functionality in parallel.
synchronized (MoonBridge.class) {
@@ -141,6 +141,8 @@ public class MoonBridge {
public static native void stopConnection();
public static native void interruptConnection();
public static native void sendMouseMove(short deltaX, short deltaY);
public static native void sendMouseButton(byte buttonEvent, byte mouseButton);