We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14b5e23 commit decf71aCopy full SHA for decf71a
lib/device-log/ios-log.js
@@ -230,8 +230,10 @@ class IOSLog extends EventEmitter {
230
try {
231
await this.proc.stop('SIGTERM', 1000);
232
} catch (e) {
233
- logger.error('Cannot stop log capture process. Sending SIGKILL...');
234
- await this.proc.stop('SIGKILL');
+ if (this.proc.isRunning) {
+ logger.warn('Cannot stop log capture process. Sending SIGKILL...');
235
+ await this.proc.stop('SIGKILL');
236
+ }
237
}
238
239
0 commit comments