I have a program that connects to a Prestashop database. When doing an operation in the database from my application, it works fine, but if later I open the web page of the online store with Prestashop, and then I do another operation with my application, I get this error in the console:

com.mysql.jdbc.exceptions.jdbc4.CommunicationsExce ption: The last packet successfully received from the server was 52.158 milliseconds ago. The last packet sent successfully to the server was 52.210 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.

The point is that the program continues to work after this exception. Should I be concerned or should I not care?
p.d. I have autoReconnect to true.