lox-airplay-sender 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core/rtsp.js CHANGED
@@ -247,6 +247,10 @@ Client.prototype.startHandshake = function (udpServers, host, port) {
247
247
  connect();
248
248
  };
249
249
  Client.prototype.startTimeout = function () {
250
+ if (this.timeout) {
251
+ clearTimeout(this.timeout);
252
+ this.timeout = null;
253
+ }
250
254
  this.timeout = setTimeout(() => {
251
255
  if (this.debug)
252
256
  this.logLine?.('timeout');
@@ -247,6 +247,10 @@ Client.prototype.startHandshake = function (udpServers, host, port) {
247
247
  connect();
248
248
  };
249
249
  Client.prototype.startTimeout = function () {
250
+ if (this.timeout) {
251
+ clearTimeout(this.timeout);
252
+ this.timeout = null;
253
+ }
250
254
  this.timeout = setTimeout(() => {
251
255
  if (this.debug)
252
256
  this.logLine?.('timeout');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lox-airplay-sender",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "AirPlay sender (RAOP/AirPlay 1 + AirPlay 2 auth flows) ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",