[Fixed 2.6 Beta] Auto_Reload_Debug Executes Twice When Source Changed

Description:
_AUTO_RELOAD_DEBUG body executes twice when main.lua changed

Steps to reproduce:

  1. Create tool with
  
local a = 0;  
function run()  
 renoise.app():show_message("test: "..a)  
end  
  
_AUTO_RELOAD_DEBUG = function()  
 a = a+1   
 run();  
end   

and place in tools folder

  1. Start Renoise
  2. Change main.lua modification time
  3. activate Renoise

Expected results:
One message window with “test: 1” text

Actual results:
Message window with “test: 1” text and after close it window with “test: 2” text

Extras:
Platform: windows xp 32bit
Renoise: 2.6.0 b5

Thanks for the detailed report. Will be fixed in the next beta.