mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-12-22 19:11:47 +01:00
Remove redundant state change in PWD
This commit is contained in:
parent
bc3c096b39
commit
78b257612a
@ -2340,17 +2340,11 @@ void FtpSession::PORT (char const *args_)
|
||||
|
||||
void FtpSession::PWD (char const *args_)
|
||||
{
|
||||
// handle keep-alive
|
||||
if (m_state == State::COMMAND)
|
||||
{
|
||||
setState (State::COMMAND, false, false);
|
||||
|
||||
if (!authorized ())
|
||||
{
|
||||
sendResponse ("530 Not logged in\r\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
auto const path = encodePath (m_cwd);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user