1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-05-09 22:19:07 -04:00

Merge pull request #1810 from winguse/patch-1

fix segment fault when use api remote config
This commit is contained in:
Xiaokang Wang
2019-08-15 12:51:33 +08:00
committed by GitHub

View File

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