From 69ffe8753acd7d72f27e7f5e467b372f5cd37f9e Mon Sep 17 00:00:00 2001 From: fakz9 Date: Sun, 19 Nov 2023 00:35:58 +0300 Subject: [PATCH] timeout on printing expanded --- src/utils/PrintingService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/PrintingService.ts b/src/utils/PrintingService.ts index 25f4fe9..61736b3 100644 --- a/src/utils/PrintingService.ts +++ b/src/utils/PrintingService.ts @@ -28,8 +28,8 @@ class PrintingService { private async print(printer: string, type: string, bytes: Uint8Array): Promise { try { let response = await axios.post(`http://${this.apiUrl}:${this.port}/print/${printer}/${type}`, bytes.buffer, { - timeout: 20 * 1000, - signal: this.newAbortSignal(20 * 1000) + timeout: 25 * 1000, + signal: this.newAbortSignal(25 * 1000) }); return response.data.ok; } catch (error) {