Skip to content

java.sql.SQLException: Connection is closed #12

Closed
@takezoe

Description

@takezoe

This plugin uses Session passed by GitBucket core for database access. While it should be outside of Future, Markdown.toHtml which includes database access is called inside Future. Probably this causes SQLException ocasionally.

val f = Future {
recipients.foreach { address =>
mailer.send(address, subject, markdown, Some(toHtml(markdown, repository)), context.loginAccount)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions