The proxy handler may be re-set from an unspecified I/O thread. Declare the shared variable as volatile. Change-Id: I4e7ce393ae2cdc7f1cd4edf40c137da6d6c50ad5 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>