mirror of
				https://github.com/Pablo2048/modbus-rtu-master.git
				synced 2025-10-31 08:22:43 +01:00 
			
		
		
		
	Missing reader.cancel() call.
This commit is contained in:
		| @@ -40,6 +40,7 @@ class ModbusRTUMaster { | |||||||
|         console.log('Disconnect requested'); |         console.log('Disconnect requested'); | ||||||
|         try { |         try { | ||||||
|             if (this.reader) { |             if (this.reader) { | ||||||
|  |                 await this.reader.cancel(); | ||||||
|                 await this.reader.releaseLock(); |                 await this.reader.releaseLock(); | ||||||
|                 this.reader = null; |                 this.reader = null; | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user