Hello,
This post is related to my previous recent posts but contains a specific question so I thought it might be a good idea to start a new one.
I have a service (that I started in the foreground) that opens a TCP connection. I also start a timer so that after 5 minutes the connection sends a message and I start another one after 6 minutes to see whether, meanwhile, I received an answer. If not: I restart the service after 5 seconds.
It seems that the timertick in the service is not functioning well: I am not reaching this code every 5 minutes (a few times at the most).
Am I doing something wrong ?
Thanks !
This post is related to my previous recent posts but contains a specific question so I thought it might be a good idea to start a new one.
I have a service (that I started in the foreground) that opens a TCP connection. I also start a timer so that after 5 minutes the connection sends a message and I start another one after 6 minutes to see whether, meanwhile, I received an answer. If not: I restart the service after 5 seconds.
It seems that the timertick in the service is not functioning well: I am not reaching this code every 5 minutes (a few times at the most).
Am I doing something wrong ?
Thanks !