138139140141142143144145146147148
} else if (c == '{') { brackets++; } else if (c == '}') { brackets--; if (brackets == 0) { JSONObject json = JSONObject.parseJSONObject(sb.toString()); sb.setLength(0); if (!handleMessage(json)) { // This connection should no longer be kept alive break; }