Skip to content

Commit

Permalink
Fixed crash in childbridge mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Jul 1, 2024
1 parent 5d10b7f commit 8d402e5
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-buildx-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
--platform linux/amd64,linux/arm64,linux/arm/v7 \
-f docker/Dockerfile.main \
-t luligu/matterbridge:latest \
-t luligu/matterbridge:1.3.7 \
-t luligu/matterbridge:1.3.8 \
--push .
docker manifest inspect luligu/matterbridge:latest
timeout-minutes: 60
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.

If you like this project and find it useful, please consider giving it a star on GitHub at https://github.com/Luligu/matterbridge and sponsoring it.

## [1.3.8] - 2024-07-01

### Fixed
- [matterbridge]: Fixed crash in childbridge mode

<a href="https://www.buymeacoffee.com/luligugithub">
<img src="./yellow-button.png" alt="Buy me a coffee" width="120">
</a>

## [1.3.7] - 2024-06-30

### Added
Expand Down
25 changes: 1 addition & 24 deletions src/matterbridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,7 @@ export class Matterbridge extends EventEmitter {
configured: plugin.configured,
paired: plugin.paired,
connected: plugin.connected,
fabricInfo: plugin.fabricInfo,
// fabricInfo: plugin.fabricInfo,
registeredDevices: plugin.registeredDevices,
addedDevices: plugin.addedDevices,
qrPairingCode: plugin.qrPairingCode,
Expand All @@ -2715,29 +2715,6 @@ export class Matterbridge extends EventEmitter {
return baseRegisteredPlugins;
}

/**
* Retrieves an array of base registered devices from the registered plugins.
* @returns {BaseRegisteredPlugin[]} An array of base registered devices.
*/
private getBaseRegisteredDevices(): BaseRegisteredPlugin[] {
const baseRegisteredPlugins: BaseRegisteredPlugin[] = this.registeredPlugins.map((plugin) => ({
path: plugin.path,
type: plugin.type,
name: plugin.name,
version: plugin.version,
description: plugin.description,
author: plugin.author,
enabled: plugin.enabled,
loaded: plugin.loaded,
started: plugin.started,
paired: plugin.paired,
connected: plugin.connected,
fabricInfo: plugin.fabricInfo,
registeredDevices: plugin.registeredDevices,
}));
return baseRegisteredPlugins;
}

/**
* Spawns a child process with the given command and arguments.
* @param command - The command to execute.
Expand Down
Loading

0 comments on commit 8d402e5

Please sign in to comment.