Skip to content

Commit

Permalink
fast ping
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxblh committed Jan 22, 2020
1 parent 83aa173 commit 491926a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class Samsung {

public isAvaliablePing(): Promise<string> {
return new Promise((resolve, reject) => {
exec('ping -c 1 ' + this.IP, (error, stdout, stderr) => {
exec('ping -c 1 -W 1' + this.IP, (error, stdout, stderr) => {
if (error) {
this.LOGGER.error('TV is avaliable', { error }, 'isAvaliable')
reject('No response from TV')
Expand Down

0 comments on commit 491926a

Please sign in to comment.