File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` hap-nodejs ` will be documented in this file. This project tries to adhere to [ Semantic Versioning] ( http://semver.org/ ) .
4
4
5
+ ## v0.13.0 (Unreleased)
6
+
7
+ ### Changed
8
+
9
+ - Mitigate event emitter "memory leak" warnings when a significant number of HomeKit camera streaming events occur simultaneously. (#1037 )
10
+
5
11
## v0.12.3 (2024-10-26)
6
12
7
13
### Changed
Original file line number Diff line number Diff line change @@ -784,6 +784,7 @@ export class RTPStreamManagement {
784
784
785
785
if ( this . activeConnection ) {
786
786
this . activeConnection . removeListener ( HAPConnectionEvent . CLOSED , this . activeConnectionClosedListener ) ;
787
+ this . activeConnection . setMaxListeners ( this . activeConnection . getMaxListeners ( ) - 1 ) ;
787
788
this . activeConnection = undefined ;
788
789
}
789
790
@@ -1098,6 +1099,7 @@ export class RTPStreamManagement {
1098
1099
"Found non-nil `activeConnection` when trying to setup streaming endpoints, even though streamStatus is reported to be AVAILABLE!" ) ;
1099
1100
1100
1101
this . activeConnection = connection ;
1102
+ this . activeConnection . setMaxListeners ( this . activeConnection . getMaxListeners ( ) + 1 ) ;
1101
1103
this . activeConnection . on ( HAPConnectionEvent . CLOSED , this . activeConnectionClosedListener ) ;
1102
1104
1103
1105
// noinspection JSDeprecatedSymbols
You can’t perform that action at this time.
0 commit comments