(player_main): Delay journal_login() until after error exits, to
ensure it is properly paired with journal_logout().
This commit is contained in:
parent
251f552088
commit
c9f21c0e73
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,6 @@ player_main(struct player *p)
|
||||||
player = p;
|
player = p;
|
||||||
time(&player->lasttime);
|
time(&player->lasttime);
|
||||||
time(&player->curup);
|
time(&player->curup);
|
||||||
journal_login();
|
|
||||||
show_motd();
|
show_motd();
|
||||||
if (init_nats() < 0) {
|
if (init_nats() < 0) {
|
||||||
pr("Server confused, try again later\n");
|
pr("Server confused, try again later\n");
|
||||||
|
@ -106,6 +105,7 @@ player_main(struct player *p)
|
||||||
|
|
||||||
time(&natp->nat_last_login);
|
time(&natp->nat_last_login);
|
||||||
putnat(natp);
|
putnat(natp);
|
||||||
|
journal_login();
|
||||||
if (natp->nat_flags & NF_INFORM && natp->nat_tgms > 0) {
|
if (natp->nat_flags & NF_INFORM && natp->nat_tgms > 0) {
|
||||||
if (natp->nat_tgms == 1)
|
if (natp->nat_tgms == 1)
|
||||||
pr("You have a new telegram waiting ...\n");
|
pr("You have a new telegram waiting ...\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue