comparison rlgterm.js @ 22:51d59a0e3b20

Fix some typos. Some code copied and pasted without updating the variable names was causing crashes.
author John "Elwin" Edwards <elwin@sdf.org>
date Wed, 23 May 2012 14:28:47 -0700
parents 82be54381964
children 83f9a799a374
comparison
equal deleted inserted replaced
21:82be54381964 22:51d59a0e3b20
150 while ((next = msgQ.shift()) !== undefined) { 150 while ((next = msgQ.shift()) !== undefined) {
151 writeData(next.d); 151 writeData(next.d);
152 nrecv++; 152 nrecv++;
153 } 153 }
154 } 154 }
155 else if (response.n > nrecv) { 155 else if (msgDict.n > nrecv) {
156 /* The current message comes after one still missing. Queue this one 156 /* The current message comes after one still missing. Queue this one
157 * for later use. */ 157 * for later use. */
158 debug(1, "Got packet " + msgDict.n + ", expected " + nrecv); 158 debug(1, "Got packet " + msgDict.n + ", expected " + nrecv);
159 msgQ[msgDict.n - nrecv - 1] = msgDict; 159 msgQ[msgDict.n - nrecv - 1] = msgDict;
160 } 160 }