Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Made the runner call testApp::exit() every time you reload incase you…
… need to shut down any comms
  • Loading branch information
mazbox committed Feb 20, 2013
1 parent 493592b commit 99db9c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion livecode.cpp
Expand Up @@ -17,7 +17,7 @@ class testApp: public ofBaseApp {

void draw() {
for(int j = 0; j < 10; j++) {
ofSetColor(j*25, 100-j*10, 100-j*25, 150);
ofSetColor(j*25, 20-j*10, 100-j*25, 255);

ofBeginShape();
ofVertex(ofGetWidth(), 0);
Expand Down
1 change: 1 addition & 0 deletions main.cpp
Expand Up @@ -18,6 +18,7 @@ ofBaseApp *app = new ofBaseApp();
void reload() {
// don't forget to clean up
if(livecodeLib!=NULL) {
app->exit();
delete app;
dlclose(livecodeLib);
}
Expand Down

0 comments on commit 99db9c2

Please sign in to comment.