The sentence comes after China detained two Canadians in December in apparent retaliation for Canada’s arrest of a Chinese technology executive.

Schellenberg was detained in 2014 and initially sentenced to 15 years in prison in 2016 on charges of being an accessory to drug smuggling. But last month an appeals court agreed with prosecutors who said the sentence was too lenient.

Canada detained Meng Wanzhou, chief financial officer of the Chinese telecommunications giant Huawei, on Dec. 1 at the request of the United States, raising tensions between Canada and China.