Skip to content

Commit

Permalink
No more msgpack bleeding through
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtisnelson committed Oct 7, 2014
1 parent 38e763d commit 259bb09
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ public abstract class WearScriptConnection {
private static final String TAG = "WearScriptConnection";
private static final String LISTEN_CHAN = "subscriptions";

private static MessagePack mMsgpack = new MessagePack();

protected String device, group, groupDevice;
private URI uri;
// deviceToChannels is always updated, then externalChannels is rebuilt
Expand Down Expand Up @@ -67,15 +65,6 @@ public static Value mapValue(Map<String, ArrayList<String>> data) {
private void onReceiveDispatch(String channel, byte[] dataRaw, List<Value> data) {
String channelPart = existsInternal(channel);
if (channelPart != null) {
Log.i(TAG, "ScriptChannel: " + channelPart);
if (dataRaw != null && data == null) {
try {
data = mMsgpack.read(dataRaw, tList(TValue));
} catch (IOException e) {
Log.e(TAG, "Could not decode msgpack");
return;
}
}
onReceive(channelPart, dataRaw, data);
}
}
Expand Down

0 comments on commit 259bb09

Please sign in to comment.