mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-06 15:20:54 +03:00
SFTPPacket constructor takes care of putting the type byte
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user