This commit is contained in:
aozhiwei 2024-04-09 15:22:04 +08:00
parent cb070446ad
commit d785be5e37

View File

@ -173,11 +173,11 @@ func NewLockAsyncTask(keys [][]string, cb func(*LockAsyncTask)) *LockAsyncTask {
if q5.IsDebug() { if q5.IsDebug() {
p.debugInfo = q5.GetCallStack() p.debugInfo = q5.GetCallStack()
_timer.SetTimeout( _timer.SetTimeout(
2, 1000 * 2,
func (e int32, args* q5.Args) { func (e int32, args* q5.Args) {
if e == q5.TIMER_EXEC_EVENT { if e == q5.TIMER_EXEC_EVENT {
if p.IsRunning() { if p.IsRunning() {
_sysLog.Warning("LockAsyncaskTimeOut ", p.debugInfo) _sysLog.Warning("LockAsyncaskTimeOut %s", p.debugInfo)
panic("LockAsyncaskTimeOut") panic("LockAsyncaskTimeOut")
} }
} }