From 3bbf263f415e89729d1014a76e65acbf09acc0dc Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 12 Feb 2022 19:12:55 -0800 Subject: [PATCH] ring: teardown --- plugins/ring/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ring/src/main.ts b/plugins/ring/src/main.ts index 932d1d095..7c060b778 100644 --- a/plugins/ring/src/main.ts +++ b/plugins/ring/src/main.ts @@ -11,7 +11,6 @@ import fs from 'fs'; import { clientApi } from '@koush/ring-client-api/lib/api/rest-client'; import { RtspServer } from '../../../common/src/rtsp-server'; import { RefreshPromise, singletonPromise, timeoutPromise } from './util'; -import { readLine } from '../../../common/src/read-stream'; const { log, deviceManager, mediaManager, systemManager } = sdk; const STREAM_TIMEOUT = 120000; @@ -263,7 +262,8 @@ class RingCameraDevice extends ScryptedDeviceBase implements BufferConverter, De this.session = sip; try { - await rtsp.handleSetup(); + await rtsp.handleTeardown(); + this.console.log('rtsp client ended'); } catch (e) { this.console.log('rtsp client ended ungracefully', e);