Merge pull request 'Fix NPE when ACN is in Error State on Listen' (#37) from bug_fix into master
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

Reviewed-on: #37
This commit is contained in:
Dan Ballard 2021-06-02 11:01:52 -07:00
commit e7da782cfe
1 changed files with 1 additions and 1 deletions

View File

@ -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 {