Skip to content

Commit

Permalink
Fix Navis protocol decoder response
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Jan 11, 2016
1 parent a56376a commit 7dea8d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/traccar/protocol/NvsProtocolDecoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.traccar.protocol;

import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
import org.jboss.netty.channel.Channel;
import org.traccar.BaseProtocolDecoder;
import org.traccar.helper.UnitsConverter;
Expand All @@ -36,7 +37,7 @@ public NvsProtocolDecoder(NvsProtocol protocol) {

private void sendResponse(Channel channel, String response) {
if (channel != null) {
channel.write(response);
channel.write(ChannelBuffers.copiedBuffer(response, Charset.defaultCharset()));
}
}

Expand Down

0 comments on commit 7dea8d7

Please sign in to comment.