timeout on printing expanded
This commit is contained in:
@@ -28,8 +28,8 @@ class PrintingService {
|
||||
private async print(printer: string, type: string, bytes: Uint8Array): Promise<boolean> {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user