Browse Source

fix #1493

pull/1869/head^2
Darien Raymond 6 years ago
parent
commit
d35c407419
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 8
      app/dispatcher/default.go

8
app/dispatcher/default.go

@ -263,5 +263,13 @@ func (d *DefaultDispatcher) routedDispatch(ctx context.Context, link *transport.
newError("default route for ", destination).WriteToLog(session.ExportIDToError(ctx))
}
}
if dispatcher == nil {
newError("default outbound handler not exist").WriteToLog(session.ExportIDToError(ctx))
common.Close(link.Writer)
pipe.CloseError(link.Reader)
return
}
dispatcher.Dispatch(ctx, link)
}

Loading…
Cancel
Save