fix crash when remainin() is called on canceled deadline
fix crash when remainin() is called on canceled deadline

toffaletti/libten,toffaletti/libten,toffaletti/libten,toffaletti/libten,toffaletti/libten