Skip to content

Commit

Permalink
MySQL requests no longer hang up
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
DerpgonCz committed Apr 23, 2016
1 parent 7c29457 commit eb40dd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions socketserver/db_mysql.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,12 @@ MysqlDB.prototype.execute = function(query, vars, callback, trans) {
con.query(query, vars, function(err, rows) {
if(err){
callback(err);
return con.rollback();
con.rollback();
} else {
callback(null, rows);
return con.commit();
con.commit();
}
con.release();
});
});
} else {
Expand Down

0 comments on commit eb40dd2

Please sign in to comment.