Skip to content

Commit

Permalink
Fix reconfig DB saving for sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgol committed Oct 14, 2022
1 parent 971f44e commit ceca730
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server/rpc/rpc-reconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ func (rpc *Server) Reconfigure(ctx context.Context, req *sliverpb.ReconfigureReq
if req.ReconnectInterval != 0 {
session.ReconnectInterval = req.ReconnectInterval
}
err = db.Session().Save(session).Error
if err != nil {
return nil, err
}
core.Sessions.UpdateSession(session)
} else if beaconID != "" {
beacon, err := db.BeaconByID(beaconID)
if err != nil || beacon == nil {
Expand Down

0 comments on commit ceca730

Please sign in to comment.