eyeonus / TradeDangerous-listener

An EDDN listener, designed to work in conjunction with the EDDBlink plugin for Trade Dangerous.
GNU Lesser General Public License v3.0
4 stars 3 forks source link

Updater thread not doing its job #14

Closed Tromador closed 6 years ago

Tromador commented 6 years ago

When I start the listener from cold it duly checks for new data @ EDDB and correctly runs the plugin.

However, for at least the last couple of days (possibly longer) it has not been doing so. The server still logs No update, checking again in 1 hour. but despite there clearly being an update, nothing is downloaded.

eyeonus commented 6 years ago

Best guess at this time is that the value that holds the dump's timestamp is refusing to be changed.

If so, putting a line to delete that variable address after using it to check would fix the problem.

Tromador commented 6 years ago

eyeonus - I'll see if I can work it out myself, don't worry unless you want to, or I need to bug you about it.

I'll just run with this for a bit and see what the times are doing and work back from there.

            print("No update, checking again in "+ next_check + ".")
            print("Localmodded: " + gmtime(localModded) + ". Dumpmodded: " + gmtime(dumpModded) + ".")
Tromador commented 6 years ago

Oh wait... strftime("%Y-%m-%d %H:%M:%S", gmtime(localModded))

Tromador commented 6 years ago

Aaand...

No update, checking again in 1 hour.
Localmodded: 2018-07-25 08:50:17. Dumpmodded: 2018-07-25 08:36:26.

Those times look correct, so I'll see what happens in the morning.

Tromador commented 6 years ago

Perversely it worked find this morning and I've yet to update to the latest. (which I shall do now).

Localmodded: 2018-07-25 08:50:17. Dumpmodded: 2018-07-25 08:36:26.
Localmodded: 2018-07-26 09:12:59. Dumpmodded: 2018-07-26 08:45:09.

I'll monitor for the next 48 hours or so and if it updates correctly, I'll close this ticket.

Tromador commented 6 years ago

This has been fine for the past couple of days. Closing.