Browse Source

Merge pull request 'Fix NPE when ACN is in Error State on Listen' (#37) from bug_fix into master

Reviewed-on: https://git.openprivacy.ca/cwtch.im/tapir/pulls/37
conVbump v0.4.2
Dan Ballard 1 year ago
parent
commit
e7da782cfe
  1. 2
      networks/tor/BaseOnionService.go

2
networks/tor/BaseOnionService.go

@ -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…
Cancel
Save