diff --git a/package.json b/package.json index ca74643..a92f3be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tibbo-discover", - "version": "0.0.3", + "version": "0.0.4", "description": "", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index ea767c8..4910940 100644 --- a/src/index.ts +++ b/src/index.ts @@ -56,6 +56,10 @@ export class TibboDiscover { this._currentClient = createSocket('udp4'); }); + if (this.$devices.value === null) { + this.$devices.next([]); + } + this.$devices.complete(); this._isBound = false; }