Commit
This commit is contained in:
		
							parent
							
								
									b5aa62cb93
								
							
						
					
					
						commit
						9117299eb2
					
				
							
								
								
									
										5
									
								
								controllers/prototype/dbrequests.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								controllers/prototype/dbrequests.js
									
									
									
									
										vendored
									
									
								
							| @ -1029,6 +1029,10 @@ DBReq.LastExpGetter = function(userId, finishAction) { | |||||||
|     this.finishAction = finishAction; |     this.finishAction = finishAction; | ||||||
|     this.finalResult = {}; |     this.finalResult = {}; | ||||||
| 
 | 
 | ||||||
|  |     if (this.userId === undefined) { | ||||||
|  |         return; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     pg.connect(pgc.url, function(err, client, release) { |     pg.connect(pgc.url, function(err, client, release) { | ||||||
|         self.client = client; |         self.client = client; | ||||||
|         self.release = release; |         self.release = release; | ||||||
| @ -1063,6 +1067,7 @@ DBReq.LastExpGetter.prototype.execute = function() { | |||||||
|             if (err !== null) { |             if (err !== null) { | ||||||
|                 Log.dberror(err + ' in LastExpGetter (DBReq)'); |                 Log.dberror(err + ' in LastExpGetter (DBReq)'); | ||||||
|             } |             } | ||||||
|  | 
 | ||||||
|             if (result.rows.length === 0) { |             if (result.rows.length === 0) { | ||||||
|                 Log.debug('Timeout', true); |                 Log.debug('Timeout', true); | ||||||
|                 setTimeout(function() { |                 setTimeout(function() { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user