Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeepStatus: option "Reconnect on APM resume" don't work #1139

Closed
dartraiden opened this issue Feb 7, 2018 · 6 comments
Closed

KeepStatus: option "Reconnect on APM resume" don't work #1139

dartraiden opened this issue Feb 7, 2018 · 6 comments

Comments

@dartraiden
Copy link
Member

No description provided.

@Goraf
Copy link
Member

Goraf commented Feb 9, 2018

Looks like protoList keeps wrong status of protocols (seems like they aren't updated)
After

ps = GetCurrentProtoSettingsCopy();

ps[i]->m_status is equal to ID_STATUS_DISABLED so when it comes to reestablish connection after APM resume
case PBT_APMRESUMESUSPEND:
case PBT_APMRESUMECRITICAL:
log_infoA("KeepStatus: resume from suspend state");
if (ps != nullptr) {
for (int i = 0; i < protoList.getCount(); i++)
protoList[i].AssignStatus(ps[i]->m_status, ps[i]->m_lastStatus, ps[i]->m_szMsg);
FreeProtoSettings(ps);
ps = nullptr;
}
StartTimer(IDT_PROCESSACK, 0, FALSE);
break;

it fails to assign previous status, returning early
int SMProto::AssignStatus(int iStatus, int iLastStatus, wchar_t *pwszMsg)
{
if (iStatus < MIN_STATUS || iStatus > MAX_STATUS)
return -1;

@WalrusInAnus
Copy link

This really makes Miranda useless for me. My PC goes to sleep quite often, and it's permanent disconnected hell for me.

@Larusek
Copy link

Larusek commented Mar 3, 2018

Indeed it is. What's more disappointing, it has been 24 days and no one assigned to this bug. Is it being worked on at all?

@WalrusInAnus
Copy link

WalrusInAnus commented Mar 4, 2018

It's still bugged for me :( I haven't even put my PC to sleep, and I've just noticed I'm offline again.
What kind of log should I provide for you to be able to troubleshoot this further?

@Goraf
Copy link
Member

Goraf commented Mar 4, 2018

I haven't even put my PC to sleep, and I've just noticed I'm offline again.

@WalrusInAnus , but it's sth different than this ticket is about. Let all of us don't mix up things. Every option can be not working on its own. For general case of not reconnecting there was a separate ticket next to this one (#1150). If you have problem with basic feature go report there, or in both places if you also confirm that this is still not working.

First, make sure you updated Miranda to the latest development version. The next thing to check/provide are entries from KeepStatus in network log. You can create standalone report (link int the second ticket), or see them on the fly using Console plugin. And just in case recheck your options.

@Larusek
Copy link

Larusek commented Mar 5, 2018

Thank you for the fix. It's solved.

@miranda-ng miranda-ng deleted a comment from hueldoeu Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants