royiro10 / cogo

MIT License
2 stars 1 forks source link

Kill Command cause Panic #32

Closed royiro10 closed 2 months ago

royiro10 commented 2 months ago

When using 'cogo kill' on a session that is not running a command we get a nil dereference panic error.

royiro10 commented 2 months ago

This is caused by Session.Stop trying to dereference the process of Session.runningCommand while its nil

This can happen under these cases: