Commit 3664e44d authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Remove panic handler from keyshare enroll method

parent a97a065d
......@@ -664,14 +664,6 @@ func (client *Client) unenrolledSchemeManagers() []irma.SchemeManagerIdentifier
// KeyshareEnroll attempts to enroll at the keyshare server of the specified scheme manager.
func (client *Client) KeyshareEnroll(manager irma.SchemeManagerIdentifier, email *string, pin string) {
go func() {
defer func() {
if e := recover(); e != nil {
if client.handler != nil {
client.handler.EnrollmentError(manager, panicToError(e))
err := client.keyshareEnrollWorker(manager, email, pin)
if err != nil {
client.handler.EnrollmentError(manager, err)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment