Skip to content

Commit

Permalink
issue #69 - don't sign out BOS session on admin svc disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
mk6i committed Oct 14, 2024
1 parent c9edc69 commit 21e249f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/oscar/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,7 @@ func (rt AdminServer) handleNewConnection(ctx context.Context, rwc io.ReadWriteC
}

defer func() {
sess.Close()
rwc.Close()
if err := rt.Signout(ctx, sess); err != nil {
rt.Logger.ErrorContext(ctx, "error notifying departure", "err", err.Error())
}
}()

ctx = context.WithValue(ctx, "screenName", sess.IdentScreenName())
Expand Down

0 comments on commit 21e249f

Please sign in to comment.