From 3fa17159bbde30cda74d4a94c4f4b3d7b8892278 Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Wed, 12 Dec 2018 12:39:58 +0200 Subject: [PATCH] dispatch destroy comman on video unmount --- src/routes/Player/Video/Video.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Player/Video/Video.js b/src/routes/Player/Video/Video.js index d5255df11..51742c4af 100644 --- a/src/routes/Player/Video/Video.js +++ b/src/routes/Player/Video/Video.js @@ -31,7 +31,7 @@ class Video extends Component { } componentWillUnmount() { - this.dispatch('stop'); + this.dispatch('command', 'destroy'); } selectVideoImplementation = () => {