geoffreyvd / LuggageControl

Luggage Control system by IS104 - Team 3
0 stars 0 forks source link

Instances of DatabaseMan should automaticly closse and open mysql connections #58

Open Dantali0n opened 8 years ago

Dantali0n commented 8 years ago

Use timers to close the mysql connection of DatabaseMan after a period of time, First I wanted to have one instance of DatabaseMan to share across all classes this is possible but outside the scope of this project. Making multiple instances with timers should however be possible.

Lets make the default timeout 15 seconds.

If you dont like timers since their quite ugly, you could also use a Thread and just let it sleep for 15 seconds this is fine 2. And renember any variable accesed by the thread needs to be an Atomic variable.

If you need help with this or simple dont want to do this just say so.

Dantali0n commented 8 years ago

I really want this feature plox geoffa!