LastReplyCode wrong

When i disconnect after download a file, the result in LastReply is '221 Goodbye.',
but the integer in LastReplyCode is not 221 !!!

Why? Thanks in advance for your help.

[19:59:53] 5970 bytes transferred. (388 KB/s) (15 ms)

[19:59:53] 226 Transfer complete.

[19:59:54] QUIT 

[19:59:54] 221 Goodbye. 

[19:59:54] Client closed the connection.
Best Regards,
Raimund

Thank you.

Could you please add your license key id to your profile?

Regards,
Mat

The reason for this behavior is as following: Before the client is able to process the reply from the server it receives an OnClose() event. Thus the Disconnect operation terminates without looking at the reply from the server.

Regards,
Mat
SmartFTP

But is this behavior correct?

I thought the value of LastReplyCode and the string of LastReply gives the same result.

Best Regards,
Raimund