@vielhuber/wahelper 1.8.9 → 1.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vielhuber/wahelper",
3
- "version": "1.8.9",
3
+ "version": "1.9.0",
4
4
  "description": "Lightweight whatsapp integration layer.",
5
5
  "main": "wahelper.js",
6
6
  "files": [
@@ -879,6 +879,9 @@ export default class wahelperDaemon {
879
879
  this.log(connection);
880
880
 
881
881
  if (qr) {
882
+ // the socket is alive and waits for the user to link the device
883
+ clearTimeout(this.connectionTimeout);
884
+ this.connectionTimeout = null;
882
885
  this.isFirstRun = true;
883
886
  if (USE_PAIRING_CODE) {
884
887
  // request pairing code once per session