fix inifinite wait - was broken after replacing timeouts with cxxtools::Timespan