~emersion/soju#113: 
Data race in isOurNick on upstream reconnect

==================
WARNING: DATA RACE
Read at 0x00c0002ba0f0 by goroutine 14:
  git.sr.ht/~emersion/soju.isOurNick()
      /home/simon/src/soju/downstream.go:195 +0x4a
  git.sr.ht/~emersion/soju.(*downstreamConn).marshalUserPrefix()
      /home/simon/src/soju/downstream.go:225 +0x84
  git.sr.ht/~emersion/soju.(*downstreamConn).marshalMessage()
      /home/simon/src/soju/downstream.go:396 +0xa5
  git.sr.ht/~emersion/soju.(*upstreamConn).produce.func1()
      /home/simon/src/soju/upstream.go:1788 +0x9c
  git.sr.ht/~emersion/soju.(*network).forEachDownstream.func1()
      /home/simon/src/soju/user.go:143 +0x83
  git.sr.ht/~emersion/soju.(*user).forEachDownstream()
      /home/simon/src/soju/user.go:388 +0x92
  git.sr.ht/~emersion/soju.(*network).forEachDownstream()
      /home/simon/src/soju/user.go:139 +0x90
  git.sr.ht/~emersion/soju.(*upstreamConn).forEachDownstream()
      /home/simon/src/soju/upstream.go:206 +0x150
  git.sr.ht/~emersion/soju.(*upstreamConn).produce()
      /home/simon/src/soju/upstream.go:1786 +0x5a
  git.sr.ht/~emersion/soju.(*upstreamConn).handleMessage()
      /home/simon/src/soju/upstream.go:420 +0xc29a
  git.sr.ht/~emersion/soju.(*upstreamConn).runUntilRegistered()
      /home/simon/src/soju/upstream.go:1672 +0xad
  git.sr.ht/~emersion/soju.(*network).run()
      /home/simon/src/soju/user.go:193 +0x587

Previous write at 0x00c0002ba0f0 by goroutine 13:
  git.sr.ht/~emersion/soju.(*user).handleUpstreamDisconnected()
      /home/simon/src/soju/user.go:582 +0x8c
  git.sr.ht/~emersion/soju.(*user).run()
      /home/simon/src/soju/user.go:470 +0x1ada
  git.sr.ht/~emersion/soju.(*Server).addUserLocked.func1()
      /home/simon/src/soju/server.go:142 +0x3c

Goroutine 14 (running) created at:
  git.sr.ht/~emersion/soju.(*user).run()
      /home/simon/src/soju/user.go:450 +0x23f1
  git.sr.ht/~emersion/soju.(*Server).addUserLocked.func1()
      /home/simon/src/soju/server.go:142 +0x3c

Goroutine 13 (running) created at:
  git.sr.ht/~emersion/soju.(*Server).addUserLocked()
      /home/simon/src/soju/server.go:141 +0x212
  git.sr.ht/~emersion/soju.(*Server).Start()
      /home/simon/src/soju/server.go:89 +0xc6
  main.main()
      /home/simon/src/soju/cmd/soju/main.go:205 +0xef5
==================
Status
REPORTED
Submitter
~emersion
Assigned to
No-one
Submitted
12 days ago
Updated
12 days ago
Labels
bug upstream