From 6b28fd60375931bec639e5b65e24e158a4f99a3e Mon Sep 17 00:00:00 2001 From: Keaton Burleson Date: Sat, 9 Apr 2022 11:51:52 -0500 Subject: [PATCH] 0.0.4 --- package.json | 2 +- src/index.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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; }