From c5569ef06d3b69b7ab35c6f301e63b8492ad0160 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Sun, 31 Oct 2021 18:33:06 +0000 Subject: [PATCH] All: Fixed potential infinite loop when Joplin Server session is invalid --- packages/lib/JoplinServerApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/JoplinServerApi.ts b/packages/lib/JoplinServerApi.ts index 7d9a9c22c46..04578def14c 100644 --- a/packages/lib/JoplinServerApi.ts +++ b/packages/lib/JoplinServerApi.ts @@ -65,7 +65,7 @@ export default class JoplinServerApi { if (this.session_) return this.session_; try { - this.session_ = await this.exec('POST', 'api/sessions', null, { + this.session_ = await this.exec_('POST', 'api/sessions', null, { email: this.options_.username(), password: this.options_.password(), });