client/red_client: fix broken switch host migration (RHBZ 727969)

3f8d7e59db introduced a regression, after
sending one attach_channels message we never send another one.
Fix by resetting on disconnect.
This commit is contained in:
Alon Levy 2011-08-03 22:54:53 +03:00
parent 3582adb989
commit f19ac970ef

View File

@ -541,6 +541,7 @@ void RedClient::connect(bool wait_main_disconnect)
void RedClient::disconnect()
{
_migrate.abort();
_msg_attach_channels_sent = false;
RedChannel::disconnect();
}