This commit is contained in:
Zack Scholl 2018-07-01 14:39:20 -07:00
parent 0539e425d2
commit 1ceed5de35
1 changed files with 1 additions and 2 deletions

View File

@ -102,8 +102,7 @@ func (c *Croc) client(role int, channel string) (err error) {
case <-interrupt:
// send Close signal to relay on interrupt
log.Debugf("interrupt")
c.cs.RWMutex.
c.cs.Lock()
c.cs.Lock()
channel := c.cs.channel.Channel
uuid := c.cs.channel.UUID
// Cleanly close the connection by sending a close message and then