forked from coolaj86/telebit.js
		
	show name of command which times out
This commit is contained in:
		
							parent
							
								
									274c527768
								
							
						
					
					
						commit
						536afb2ad5
					
				| @ -179,7 +179,7 @@ function _connect(state) { | |||||||
|     wsHandlers.sendMessage(Packer.pack(null, cmd, 'control')); |     wsHandlers.sendMessage(Packer.pack(null, cmd, 'control')); | ||||||
|     setTimeout(function () { |     setTimeout(function () { | ||||||
|       if (pendingCommands[id]) { |       if (pendingCommands[id]) { | ||||||
|         console.warn('command', id, 'timed out'); |         console.warn('command', name, id, 'timed out'); | ||||||
|         pendingCommands[id]({ |         pendingCommands[id]({ | ||||||
|           message: 'response not received in time' |           message: 'response not received in time' | ||||||
|         , code: 'E_TIMEOUT' |         , code: 'E_TIMEOUT' | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user