session修改成同步操作
This commit is contained in:
@@ -1341,7 +1341,6 @@ public class DatabaseStore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void updateSessionDeleted(String uid, String cid, int deleted) {
|
void updateSessionDeleted(String uid, String cid, int deleted) {
|
||||||
mScheduler.execute(()->{
|
|
||||||
Connection connection = null;
|
Connection connection = null;
|
||||||
PreparedStatement statement = null;
|
PreparedStatement statement = null;
|
||||||
|
|
||||||
@@ -1366,11 +1365,9 @@ public class DatabaseStore {
|
|||||||
} finally {
|
} finally {
|
||||||
DBUtil.closeDB(connection, statement);
|
DBUtil.closeDB(connection, statement);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void updateSessionPlatform(String uid, String cid, int platform) {
|
void updateSessionPlatform(String uid, String cid, int platform) {
|
||||||
mScheduler.execute(()->{
|
|
||||||
Connection connection = null;
|
Connection connection = null;
|
||||||
PreparedStatement statement = null;
|
PreparedStatement statement = null;
|
||||||
|
|
||||||
@@ -1395,7 +1392,6 @@ public class DatabaseStore {
|
|||||||
} finally {
|
} finally {
|
||||||
DBUtil.closeDB(connection, statement);
|
DBUtil.closeDB(connection, statement);
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean strEqual(String left, String right) {
|
private boolean strEqual(String left, String right) {
|
||||||
|
|||||||
Reference in New Issue
Block a user