From 174fd3ea4ab592cc2ca8e366fbda95601f1597b2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 22 Apr 2020 20:47:46 +0200 Subject: [PATCH] don't assume options --- src/matrix/net/HomeServerApi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index 1526c1e2..6454a2a2 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -70,7 +70,7 @@ export class HomeServerApi { body: bodyString, }); - if (options.timeout) { + if (options && options.timeout) { const timeout = this._createTimeout(options.timeout); // abort request if timeout finishes first timeout.elapsed().then(