diff options
Diffstat (limited to 'src/net/sourceforge/opentracking/TrackerEventHandler.java')
-rw-r--r-- | src/net/sourceforge/opentracking/TrackerEventHandler.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/sourceforge/opentracking/TrackerEventHandler.java b/src/net/sourceforge/opentracking/TrackerEventHandler.java index 218dd944b..b47f3be5a 100644 --- a/src/net/sourceforge/opentracking/TrackerEventHandler.java +++ b/src/net/sourceforge/opentracking/TrackerEventHandler.java @@ -20,7 +20,6 @@ import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ExceptionEvent; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.channel.ChannelPipelineCoverage; -import java.sql.SQLException; /** * Tracker message handler @@ -47,9 +46,8 @@ public class TrackerEventHandler extends SimpleChannelHandler { // Write position to database try { - dataManager.writePosition((Position) e.getMessage()); + dataManager.setPosition((Position) e.getMessage()); } catch (Exception error) { - //System.out.println("write error"); } } } |