safe to use enablelinehook/disablelinehook twice in a row?
Posted: Wed Mar 12, 2025 4:11 pm
I have a bug in my code where for some reason DisableLineHook() in some case stays on, as in it goes to a part of code where EnableLineHook() should have already happened and yet it didnt. instead of finding out where this happens, I am instead using EnableLineHook() at that other part of code. But this now results in a situation where when things work normally, EnableLineHook() happens twice.
Do I need to make my own function which keeps track if LineHook is Enabled or Disabled, to avoid it happening twice, or is it safe to use EnableLineHook() Twice?
In my test it gave no problem using it twice, but is it possible it could in some future update, or on some other platform cause a problem?
Do I need to make my own function which keeps track if LineHook is Enabled or Disabled, to avoid it happening twice, or is it safe to use EnableLineHook() Twice?
In my test it gave no problem using it twice, but is it possible it could in some future update, or on some other platform cause a problem?