Skip to content

Commit

Permalink
Hongyi: a quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laoyaosniper committed Sep 13, 2014
1 parent c39ae2d commit e8921aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -36,9 +36,8 @@ public class RequestHandler implements Runnable {
* @param clientId corresponding client identifier
* @param clientRecord the downlink request
*/
public RequestHandler(DatagramSocket socket, ClientIdentifier clientId,
public RequestHandler(ClientIdentifier clientId,
ClientRecord clientRecord) {
//this.socket = socket;
this.clientId = clientId;
this.clientRecord = clientRecord;
}
Expand Down
Expand Up @@ -134,7 +134,7 @@ private void processPacket(MeasurementPacket packet)
// Create a new thread for downlink burst. Otherwise the uplink burst
// at the same time may be blocked and lead to wrong delay estimation
RequestHandler respHandle = new RequestHandler(
socket, packet.clientId, clientRecord);
packet.clientId, clientRecord);
new Thread(respHandle).start();
}
else if ( packet.type == Config.PKT_DATA ) {
Expand Down

0 comments on commit e8921aa

Please sign in to comment.