Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
bfd25e2b84
commit
e394f1dc24
1 file changed
+1
-1
+1
-1
@@ -273,7 +273,7 @@ func (c *Client) connect(ctx context.Context) error {
|
|||||||
sentID, sentOutfit := int64(-1), ""
|
sentID, sentOutfit := int64(-1), ""
|
||||||
for {
|
for {
|
||||||
c.mu.Lock()
|
c.mu.Lock()
|
||||||
id, outfit := c.imvuID, append([]Item(nil), c.outfit...)
|
id, outfit := c.imvuID, append([]Item{}, c.outfit...) // a list, never null
|
||||||
c.mu.Unlock()
|
c.mu.Unlock()
|
||||||
if id != sentID && id != 0 {
|
if id != sentID && id != 0 {
|
||||||
if err := send(map[string]any{"type": "session", "imvu_id": id}); err != nil {
|
if err := send(map[string]any{"type": "session", "imvu_id": id}); err != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user