Skip to content

Commit

Permalink
async callback ID problem fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Oguz Bastemur committed Jul 17, 2014
1 parent 83792c7 commit 6eefd45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/jx_rabbit_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ exports.addClientMessage = function (clid, index, message) {
if (!clientMessages[clid]) {
clientMessages[clid] = {starts: index};
}
clientMessages[clid].ends = index;

if(clientMessages[clid].starts <= index)
clientMessages[clid].ends = index;
else
clientMessages[clid].starts = index;

clientMessages[clid][index] = (message);
clientMessages.__count++;
Expand Down
1 change: 1 addition & 0 deletions backend/jx_server_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ var _ticker = function (clid, moveon) {
var end = false;

if (p.data.length > 0) {

if (p.res) {
if (p.req.desktop) {
p.res.write(p.data.join(",") + ",");
Expand Down
1 change: 1 addition & 0 deletions node_modules/mediaserver/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6eefd45

Please sign in to comment.