Merge pull request #615 from thinkhy/patch-1

Initialize flag variable "header" to true in /lib/util/devutil.js
This commit is contained in:
Simo Kinnunen
2017-06-11 22:56:31 +09:00
committed by GitHub

View File

@@ -42,7 +42,7 @@ devutil.listPidsByComm = function(adb, serial, comm, bin) {
return adb.shell(serial, ['ps', comm])
.then(function(out) {
return new Promise(function(resolve) {
var header = false
var header = true
var pids = []
out.pipe(split())
.on('data', function(chunk) {