mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
Fix #1552
This commit is contained in:
@@ -1316,7 +1316,7 @@ inc_sending_ref(struct socket *s, int id) {
|
||||
continue;
|
||||
}
|
||||
// inc sending only matching the same socket id
|
||||
if (ATOM_CAS(&s->sending, sending, sending + 1))
|
||||
if (ATOM_CAS_ULONG(&s->sending, sending, sending + 1))
|
||||
return;
|
||||
// atom inc failed, retry
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user