rock-queue-smpp 0.1.5 → 0.1.5.01
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 +5 -0
- metadata +1 -1
|
@@ -13,6 +13,11 @@ module RockQueueSmpp
|
|
|
13
13
|
}
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
def self.send_mt(*args)
|
|
17
|
+
@@mt_id += 1
|
|
18
|
+
@@tx.send_mt(@@mt_id, *args)
|
|
19
|
+
end
|
|
20
|
+
|
|
16
21
|
# Main worker loop where all jobs are beeing pulled of the queue.
|
|
17
22
|
# This is also a place where every job starts and ends it's lifecycle.
|
|
18
23
|
def work
|