Fix: SASL not firing off
This commit is contained in:
parent
640d183c1b
commit
ac38ef0258
@ -17,8 +17,8 @@ import (
|
|||||||
func (c *Client) registerBuiltins() {
|
func (c *Client) registerBuiltins() {
|
||||||
c.debug.Print("registering built-in handlers")
|
c.debug.Print("registering built-in handlers")
|
||||||
|
|
||||||
c.mu.Lock()
|
c.Handlers.mu.Lock()
|
||||||
defer c.mu.Unlock()
|
defer c.Handlers.mu.Unlock()
|
||||||
|
|
||||||
// Built-in things that should always be supported.
|
// Built-in things that should always be supported.
|
||||||
c.Handlers.register(true, true, RPL_WELCOME, HandlerFunc(handleConnect))
|
c.Handlers.register(true, true, RPL_WELCOME, HandlerFunc(handleConnect))
|
||||||
|
@ -214,6 +214,8 @@ type execStack struct {
|
|||||||
// Please note that there is no specific order/priority for which the handlers
|
// Please note that there is no specific order/priority for which the handlers
|
||||||
// are executed.
|
// are executed.
|
||||||
func (c *Caller) exec(command string, bg bool, client *Client, event *Event) {
|
func (c *Caller) exec(command string, bg bool, client *Client, event *Event) {
|
||||||
|
c.mu.RLock()
|
||||||
|
defer c.mu.RUnlock()
|
||||||
|
|
||||||
// Build a stack of handlers which can be executed concurrently.
|
// Build a stack of handlers which can be executed concurrently.
|
||||||
var stack []execStack
|
var stack []execStack
|
||||||
|
Loading…
Reference in New Issue
Block a user