Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Filios <[email protected]>
  • Loading branch information
alexandrosfilios committed Jan 16, 2025
1 parent 1fde7ff commit 0effc7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion platform/view/core/manager/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,11 @@ func (ctx *ctx) newSessionByID(sessionID, contextID string, party view.Identity)
if err != nil {
return nil, err
}
return ctx.sessionFactory.NewSessionWithID(sessionID, contextID, resolver.GetAddress(driver.P2PPort), pkid, nil, nil)
var endpoint string
if resolver != nil {
endpoint = resolver.GetAddress(driver.P2PPort)
}
return ctx.sessionFactory.NewSessionWithID(sessionID, contextID, endpoint, pkid, nil, nil)
}

func (ctx *ctx) cleanup() {
Expand Down

0 comments on commit 0effc7f

Please sign in to comment.