Browse Source

Merge pull request #1810 from winguse/patch-1

fix segment fault when use api remote config
pull/1850/head
Xiaokang Wang 5 years ago committed by GitHub
parent
commit
adc9073d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/proxyman/outbound/outbound.go

2
app/proxyman/outbound/outbound.go

@ -130,7 +130,7 @@ func (m *Manager) RemoveHandler(ctx context.Context, tag string) error {
defer m.access.Unlock() defer m.access.Unlock()
delete(m.taggedHandler, tag) delete(m.taggedHandler, tag)
if m.defaultHandler.Tag() == tag { if m.defaultHandler != nil && m.defaultHandler.Tag() == tag {
m.defaultHandler = nil m.defaultHandler = nil
} }

Loading…
Cancel
Save