summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/cal.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index ca83d7fd..c0160ffd 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -13,9 +13,11 @@ is_playing(int unmode)
if (p == USHM_SIZE)
p = 0;
uentp = &(SHM->uinfo[p]);
- if (uentp->uid == usernum)
- if (uentp->lockmode == unmode)
- return 1;
+ if (uentp->mode == DEBUGSLEEPING)
+ continue;
+ if (uentp->uid == usernum &&
+ uentp->lockmode == unmode)
+ return 1;
}
return 0;
}