Use mp_CheckAutoloadTimer() rather than mp_StopAutoloadTimer()

when opening or closing an auto link due to the autoload
setting.

Spotted by: David Hedley <david@inty.co.uk>
This commit is contained in:
Brian Somers 2000-05-31 15:35:29 +00:00
parent ca7d5d8c6d
commit a339e6448b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61129

View File

@ -1967,12 +1967,12 @@ bundle_AutoAdjust(struct bundle *bundle, int percent, int what)
log_Printf(LogPHASE, "%d%% saturation -> Opening link ``%s''\n",
percent, choice->name);
datalink_Up(choice, 1, 1);
mp_StopAutoloadTimer(&bundle->ncp.mp);
mp_CheckAutoloadTimer(&bundle->ncp.mp);
} else if (otherlinkup) { /* Only bring the second-last link down */
log_Printf(LogPHASE, "%d%% saturation -> Closing link ``%s''\n",
percent, choice->name);
datalink_Close(choice, CLOSE_STAYDOWN);
mp_StopAutoloadTimer(&bundle->ncp.mp);
mp_CheckAutoloadTimer(&bundle->ncp.mp);
}
}
}