Dear friend, In such examples as you mention, there is no observative difference in meaning between the constructions. Continue is an aspectual verb, and with many other verbs belonging to this type both to- infinitive and -ing clauses are possible: Jerry started/continued/ceased to write ( writing ) while in hospital. There are limited cases when the difference is still felt, but this is not your case.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.