mirror of
https://github.com/outbackdingo/onvif2mqtt.git
synced 2026-01-27 10:19:48 +00:00
rename to destoy()
This commit is contained in:
@@ -2,13 +2,8 @@ mqtt:
|
||||
host: 127.0.0.1
|
||||
port: 1883
|
||||
onvif:
|
||||
- name: device_name_R
|
||||
hostname: 127.0.0.1
|
||||
port: 80
|
||||
username: username11
|
||||
password: password
|
||||
- name: device_name_M
|
||||
- name: device_name
|
||||
hostname: 127.0.0.1
|
||||
port: 80
|
||||
username: username
|
||||
password: password1
|
||||
password: password
|
||||
|
||||
@@ -35,7 +35,7 @@ export default class Manager {
|
||||
};
|
||||
|
||||
initializeOnvifDevicesFunctions = () => {
|
||||
this.subscriber.unSubscribe();
|
||||
this.subscriber.destroy();
|
||||
this.initializeOnvifDevices(this.config.get('onvif'));
|
||||
this.subscriber.withCallback(CALLBACK_TYPES.motion, this.onMotionDetected);
|
||||
};
|
||||
|
||||
@@ -42,7 +42,7 @@ export default class SubscriberGroup {
|
||||
}));
|
||||
};
|
||||
|
||||
unSubscribe = () => {
|
||||
destroy = () => {
|
||||
this.subscribers.forEach((item) => {
|
||||
item.cam = null;
|
||||
item = null;
|
||||
|
||||
Reference in New Issue
Block a user