Stop code prior to new run attempt

This commit is contained in:
Sebastian Serth
2020-10-29 12:39:01 +01:00
parent ab9673757f
commit 51188eb72a

View File

@ -155,6 +155,7 @@ CodeOceanEditorSubmissions = {
*/
runCode: function(event) {
event.preventDefault();
this.stopCode(event);
if ($('#run').is(':visible')) {
this.createSubmission('#run', null, this.runSubmission.bind(this));
}