mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-12-18 15:28:15 +00:00
fix:When generating seqId, the lock is handled incorrectly.
Signed-off-by: dong-peng25 <dongpeng25@huawei.com>
This commit is contained in:
parent
80a97cba90
commit
85808330a8
@ -40,9 +40,11 @@ uint64_t TransTdcGetNewSeqId(void)
|
||||
static uint64_t seq = 0;
|
||||
seq += TRANS_SEQ_STEP;
|
||||
|
||||
uint64_t retseq = seq;
|
||||
|
||||
ReleaseSessonConnLock();
|
||||
|
||||
return seq;
|
||||
return retseq;
|
||||
}
|
||||
|
||||
int32_t GenerateTdcChannelId(void)
|
||||
|
Loading…
Reference in New Issue
Block a user