Skip to content

Commit

Permalink
Don't quit the SketchRunner when you stop a sketch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Feinberg committed Nov 1, 2015
1 parent b1f708a commit e32cdc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtime/src/jycessing/mode/PyEditor.java
Expand Up @@ -28,11 +28,11 @@
import jycessing.mode.run.SketchServiceManager;
import jycessing.mode.run.SketchServiceProcess;
import processing.app.Base;
import processing.app.Platform;
import processing.app.Messages;
import processing.app.Formatter;
import processing.app.Language;
import processing.app.Messages;
import processing.app.Mode;
import processing.app.Platform;
import processing.app.SketchCode;
import processing.app.SketchException;
import processing.app.ui.Editor;
Expand Down Expand Up @@ -69,7 +69,8 @@ private static void log(final String msg) {
private Path tempSketch;


protected PyEditor(final Base base, final String path, final EditorState state, final Mode mode) throws EditorException {
protected PyEditor(final Base base, final String path, final EditorState state, final Mode mode)
throws EditorException {
super(base, path, state, mode);

id = UUID.randomUUID().toString();
Expand Down Expand Up @@ -127,7 +128,6 @@ public String getCommentPrefix() {
public void internalCloseRunner() {
try {
sketchService.stopSketch();
sketchService.shutdown();
} catch (final SketchException e) {
statusError(e);
} finally {
Expand Down

0 comments on commit e32cdc5

Please sign in to comment.