jstp 1.3.0 → 1.3.1

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.
Files changed (3) hide show
  1. data/lib/jstp/engine.rb +7 -2
  2. data/lib/jstp/version.rb +1 -1
  3. metadata +1 -1
@@ -18,8 +18,13 @@ module JSTP
18
18
  # Is there a reverse gateway token there?
19
19
  if @config.gateway.reverse && message.gateway == 'reverse'
20
20
  if clients.has_key? message.token.first
21
- clients[message.token.first].send message.to.json
22
- @config.logger.debug message.to.string
21
+ begin
22
+ clients[message.token.first].send message.to.json
23
+ @config.logger.debug message.to.string
24
+ rescue Exception => exception
25
+ @config.logger.error exception.message
26
+ @config.logger.debug exception.backtrace.to_s
27
+ end
23
28
  else
24
29
  raise ClientNotFoundError, "Client #{message.token.first} is not registered in this server"
25
30
  end
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module JSTP
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jstp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: