soyuka / pidusage

Cross-platform process cpu % and memory usage of a PID
MIT License
512 stars 55 forks source link

Event error need to be "handled" on windows #24

Closed vmarchaud closed 8 years ago

vmarchaud commented 8 years ago

Hello again,

Sorry for the error but this morning i was working on my laptop that has "wmic", getting back on my workstation, when i dont have it, its getting my process to crashed cause of the unhandled event, i dont find it usefull to make a PR to add this only line :

wmic.on('error', function (err) {})

Thanks again :)