Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
4a35b5d6
Commit
4a35b5d6
authored
Oct 15, 2017
by
Sietse Ringers
Browse files
Don't DELETE succeeded sessions
parent
24fe4a26
Changes
1
Hide whitespace changes
Inline
Side-by-side
session.go
View file @
4a35b5d6
...
...
@@ -54,7 +54,7 @@ type session struct {
transport
*
HTTPTransport
choice
*
DisclosureChoice
downloaded
*
IrmaIdentifierSet
d
eleted
bool
d
one
bool
}
// We implement the handler for the keyshare protocol
...
...
@@ -361,6 +361,7 @@ func (session *session) sendResponse(message interface{}) {
if
session
.
Action
==
ActionIssuing
{
session
.
credManager
.
handler
.
UpdateAttributes
()
}
session
.
done
=
true
session
.
Handler
.
Success
(
session
.
Action
)
}
...
...
@@ -417,9 +418,9 @@ func handlePanic(callback func(*SessionError)) {
// Idempotently send DELETE to remote server, returning whether or not we did something
func
(
session
*
session
)
delete
()
bool
{
if
!
session
.
d
eleted
{
if
!
session
.
d
one
{
session
.
transport
.
Delete
()
session
.
d
eleted
=
true
session
.
d
one
=
true
return
true
}
return
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment