Skip to content

Commit

Permalink
Merge pull request #353 from prey/scan-networks-timeout
Browse files Browse the repository at this point in the history
Timeout on scan networks callback
  • Loading branch information
javo authored Jan 17, 2018
2 parents 9beae56 + 4b7e9e8 commit 1d1af8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
- Custom directory Wipe [\#344](https://github.com/prey/prey-node-client/pull/344) ([javo](https://github.com/javo))
- Node client 2018 [\#346](https://github.com/prey/prey-node-client/pull/346) ([javo](https://github.com/javo))
- Signed wipe binaries [\#348](https://github.com/prey/prey-node-client/pull/348) ([javo](https://github.com/javo))
- Force networks scan on windows [\#351](https://github.com/prey/prey-node-client/pull/351) ([javo](https://github.com/javo))
- Custom wipe fix for many directories [\#352](https://github.com/prey/prey-node-client/pull/352) ([javo](https://github.com/javo))
- Timeout on scan networks callback [\#353](https://github.com/prey/prey-node-client/pull/353) ([javo](https://github.com/javo))

## [v1.7.2](https://github.com/prey/prey-node-client/tree/v1.7.2) (2017-10-30)
[Full Changelog](https://github.com/prey/prey-node-client/compare/v1.7.1...v1.7.2)
Expand Down
6 changes: 4 additions & 2 deletions lib/system/windows/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ exports.reconnect = function(cb) {
};

exports.scan_networks = function(cb) {
var cmd_path = bin_path('wlanscan.exe');
exec('"' + cmd_path + '" /triggerscan', cb)
var cmd_path = bin_path('wlanscan.exe');
exec('"' + cmd_path + '" /triggerscan', function() {
setTimeout(cb, 2000);
})
}

function bin_path(executable) {
Expand Down

0 comments on commit 1d1af8d

Please sign in to comment.