Cleanup the ongoing commands when disconnect otherwise we wait for them forever the next time.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40891 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2011-03-09 22:18:27 +00:00
parent 5848eb25e2
commit f686f2f564

View File

@ -414,6 +414,7 @@ IMAPProtocol::_ProcessCommandWithoutAfterQuake(const char* command,
status_t
IMAPProtocol::_Disconnect()
{
fOngoingCommands.clear();
fIsConnected = false;
return fOwnServerConnection.Disconnect();
}