keep more than one assignment in the queue

This commit is contained in:
Stephen Birarda 2013-09-04 10:14:53 -07:00
parent 94740eed60
commit f485814a42

View file

@ -55,11 +55,6 @@ int main(int argc, const char* argv[]) {
Assignment newAssignment((Assignment::Type) *(senderData + numBytesForPacketHeader(senderData)), senderSocket);
qDebug() << "Received assignment of type " << newAssignment.getType() << "\n";
// for the puroposes of debugging before implementing a GUID system - only keep latest
if (assignmentQueue.size() > 0) {
assignmentQueue.pop();
}
// add this assignment to the queue
assignmentQueue.push(newAssignment);