fix an annoying warning

mainw was not nulling a timeout