whos_using_what 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -49,12 +49,23 @@ class DataPopulators
|
|
49
49
|
|
50
50
|
|
51
51
|
begin
|
52
|
-
|
52
|
+
|
53
|
+
t1 = Thread.new do
|
54
|
+
|
55
|
+
@@geo_tagger.load_geolocations_into_db
|
56
|
+
|
57
|
+
end
|
58
|
+
|
53
59
|
rescue Exception => e
|
54
60
|
puts e.message
|
55
61
|
puts e.backtrace
|
56
62
|
end
|
57
63
|
|
64
|
+
#this is necessary, for some reason, otherwise the process just gets killed, as the sub-threads are dependent on the main thread remaining alive
|
65
|
+
while true
|
66
|
+
sleep(5)
|
67
|
+
end
|
68
|
+
|
58
69
|
|
59
70
|
end
|
60
71
|
|