Skip to content

Commit

Permalink
fix: longer timeout to make receive stable
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Dec 30, 2024
1 parent f79321e commit c655d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class Printer {
}
}

async receive(timeout: number = 100): Promise<string | Buffer> {
async receive(timeout: number = 1000): Promise<string | Buffer> {
return new Promise((resolve, reject) => {
const timeoutId = setTimeout(() => reject(new Error('Timeout')), timeout);
(this._connection! as EventEmitter).once('data', (data) => {
Expand Down

0 comments on commit c655d03

Please sign in to comment.