Jelajahi Sumber

in progress

0x4a52466c696e74 1 tahun lalu
induk
melakukan
b30aee901a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      sip/asterisk/ami/client.go

+ 1 - 1
sip/asterisk/ami/client.go

@@ -139,7 +139,7 @@ func (s *client) eventListenersCleaner() {
 func (s *client) registerEventListener(uuid int64) <-chan Event {
 func (s *client) registerEventListener(uuid int64) <-chan Event {
 	listener := &EventListener{
 	listener := &EventListener{
 		uuid:      uuid,
 		uuid:      uuid,
-		eventChan: make(chan Event),
+		eventChan: make(chan Event, 1),
 	}
 	}
 	s.locker.Lock()
 	s.locker.Lock()
 	s.eventListeners[uuid] = listener
 	s.eventListeners[uuid] = listener