Skip to content

Commit 6c785cf

Browse files
LSKhappychildlinouxis9
authored andcommitted
Add locking for GnbUE Release status getter / setter
Signed-off-by: LSKhappychild <lskook47@gmail.com>
1 parent 35f2a6c commit 6c785cf

File tree

1 file changed

+4
-0
lines changed
  • internal/control_test_engine/gnb/context

1 file changed

+4
-0
lines changed

internal/control_test_engine/gnb/context/ue.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,13 @@ func (ue *GNBUe) SetAmfUeId(amfUeId int64) {
328328
}
329329

330330
func (ue *GNBUe) SetReleaseRequested(val bool) {
331+
ue.lock.Lock()
332+
defer ue.lock.Unlock()
331333
ue.releaseRequested = val
332334
}
333335

334336
func (ue *GNBUe) GetReleaseRequested() bool {
337+
ue.lock.Lock()
338+
defer ue.lock.Unlock()
335339
return ue.releaseRequested
336340
}

0 commit comments

Comments
 (0)