mirror of
https://github.com/koush/scrypted.git
synced 2026-05-26 22:50:30 +01:00
ring: teardown
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user