SFTPPacket constructor takes care of putting the type byte

This commit is contained in:
Shikhar Bhushan
2010-03-21 01:28:45 +01:00
parent db4185608d
commit 89d03361ba

View File

@@ -25,11 +25,10 @@ public class Request
private final Future<Response, SFTPException> responseFuture;
public Request(PacketType type, long reqID) {
super();
this.reqID = reqID;
super(type);
this.type = type;
this.reqID = reqID;
responseFuture = new Future<Response, SFTPException>("sftp / " + reqID, SFTPException.chainer);
putByte(type.toByte());
putInt(reqID);
}