From f9ad8a4c20554bafaa5961ff44af0cec3f65fdb0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 7 Jun 2018 20:09:50 +0200 Subject: try kill --- app/client/modules/pix2wav/views/pix2wav.live.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'app/client') diff --git a/app/client/modules/pix2wav/views/pix2wav.live.js b/app/client/modules/pix2wav/views/pix2wav.live.js index 0f73a1f..551bcda 100644 --- a/app/client/modules/pix2wav/views/pix2wav.live.js +++ b/app/client/modules/pix2wav/views/pix2wav.live.js @@ -57,6 +57,9 @@ class Pix2WavLive extends Component { interrupt(){ this.props.actions.queue.stop_task('gpu') } + exit(){ + this.props.actions.queue.stop_task('gpu', { sigkill: true }) + } togglePlaying(){ if (this.props.opt.processing) { this.props.actions.live.pause() @@ -79,8 +82,8 @@ class Pix2WavLive extends Component { } // console.log('sequence', this.props.opt) return ( -
- +
+
this.interrupt()} >Interrupt +
) } @@ -290,6 +297,10 @@ class Pix2WavLive extends Component { title={'GPU Busy'} onClick={() => this.interrupt()} >Interrupt +
) } -- cgit v1.2.3-70-g09d2