Skip to content

Commit

Permalink
Fixes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
bakercp committed Jun 13, 2014
1 parent a881d18 commit 42c663a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ofSketchApp/src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ App::~App()
{
_taskQueue.unregisterTaskEvents(this);

// Reset default logger.
ofLogToConsole();

server->getWebSocketRoute()->unregisterWebSocketEvents(this);
server->getPostRoute()->unregisterPostEvents(this);

Expand Down Expand Up @@ -187,6 +184,13 @@ void App::draw()
}


void App::exit()
{
// Reset default logger.
ofLogToConsole();
}


void App::mousePressed(int x, int y, int button)
{
ofLaunchBrowser(server->getURL());
Expand Down
2 changes: 2 additions & 0 deletions ofSketchApp/src/App.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class App: public ofBaseApp
void update();
void draw();

void exit();

void mousePressed(int x, int y, int button);

void loadProject(const void* pSender, JSONRPC::MethodArgs& args);
Expand Down

0 comments on commit 42c663a

Please sign in to comment.