Commit 52047fca authored by Alex Browne's avatar Alex Browne Committed by Steven Allen

Switch order of Call("close") and signalClose()

parent 6e856e1b
......@@ -133,8 +133,8 @@ func (c *Conn) Write(b []byte) (n int, err error) {
// This method is thread-safe.
func (c *Conn) Close() error {
c.closeOnce.Do(func() {
c.signalClose()
c.Call("close")
c.signalClose()
c.releaseHandlers()
})
return nil
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment