Skip to content

Commit

Permalink
Small change to remove debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Carrotman42 committed Apr 19, 2014
1 parent 56b5bc4 commit 8dafc14
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions device.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package gomotion
import (
"code.google.com/p/go.net/websocket"
"net"
"fmt"
)

// A simple type to carry decode errors along rather than just dieing.
Expand Down Expand Up @@ -48,7 +47,6 @@ func (device *LeapMotionDevice) listenRead() {
if err := websocket.JSON.Receive(device.Connection, &frame.Frame); err != nil {
// Slightly way to avoid another variable in LeapMotionDevice. Works for me.
if _, ok := err.(*net.OpError); ok {
fmt.Println("Closed!")
close(device.Pipe)
return
}
Expand Down

0 comments on commit 8dafc14

Please sign in to comment.