rock-queue-smpp 0.1.6.08 → 0.1.6.09
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rock-queue-smpp/worker.rb +3 -1
- metadata +1 -1
@@ -29,6 +29,7 @@ module RockQueueSmpp
|
|
29
29
|
|
30
30
|
def self.send_mt(*args)
|
31
31
|
@@mt_id += 1
|
32
|
+
puts '=> sending message'
|
32
33
|
@@tx.send_mt(@@mt_id, *args)
|
33
34
|
end
|
34
35
|
|
@@ -46,7 +47,6 @@ module RockQueueSmpp
|
|
46
47
|
config.smpp_config,
|
47
48
|
self # delegate that will receive callbacks on MOs and DRs and other events
|
48
49
|
)
|
49
|
-
$stdout.flush
|
50
50
|
@queue.receive do |queue|
|
51
51
|
puts "=> In Queue Loop"
|
52
52
|
if queue
|
@@ -65,6 +65,8 @@ module RockQueueSmpp
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|
68
|
+
puts "=> Disconnected. Reconnecting in 5 seconds"
|
69
|
+
sleep 5
|
68
70
|
end
|
69
71
|
end
|
70
72
|
end
|