Client: fix a bug in the client, the value of variable "period" is not "undefined" now

Signed-off-by: Jean-François Erdelyi <jean-francois.erdelyi.1@ulaval.ca>