Merge pull request 'Fix NPE when ACN is in Error State on Listen' (#37) from bug_fix into master
Reviewed-on: #37
This commit is contained in:
commit
e7da782cfe
|
@ -155,10 +155,10 @@ func (s *BaseOnionService) Listen(app tapir.Application) error {
|
|||
s.lock.Lock()
|
||||
ls, err := s.acn.Listen(s.privateKey, s.port)
|
||||
s.ls = ls
|
||||
log.Debugf("Starting a service on %v ", ls.AddressFull())
|
||||
s.lock.Unlock()
|
||||
|
||||
if err == nil {
|
||||
log.Debugf("Starting a service on %v ", ls.AddressFull())
|
||||
for {
|
||||
conn, err := s.ls.Accept()
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in New Issue