Commit f597b6f7 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Fixed potential deadlock reported by Giancarlo.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9476 b35dd754-fafc-0310-a699-88a17e54d16e
parent bbb81490
......@@ -88,9 +88,8 @@ public class RosterItemProvider {
Connection con = null;
PreparedStatement pstmt = null;
try {
con = DbConnectionManager.getConnection();
long rosterID = SequenceManager.nextID(JiveConstants.ROSTER);
con = DbConnectionManager.getConnection();
pstmt = con.prepareStatement(CREATE_ROSTER_ITEM);
pstmt.setString(1, username);
pstmt.setLong(2, rosterID);
......
Markdown is supported
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