coin 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/coin.rb +2 -1
- data/lib/coin/version.rb +1 -1
- metadata +1 -1
data/lib/coin.rb
CHANGED
@@ -55,7 +55,6 @@ module Coin
|
|
55
55
|
return @server if @server && server_running?
|
56
56
|
|
57
57
|
start_server
|
58
|
-
DRb.start_service
|
59
58
|
@server = DRbObject.new_with_uri(uri)
|
60
59
|
end
|
61
60
|
|
@@ -90,12 +89,14 @@ module Coin
|
|
90
89
|
Process.detach(pid)
|
91
90
|
|
92
91
|
sleep 0.1 while !server_running?
|
92
|
+
DRb.start_service
|
93
93
|
true
|
94
94
|
end
|
95
95
|
|
96
96
|
def stop_server
|
97
97
|
Process.kill("HUP", @pid.to_i) if server_running?
|
98
98
|
sleep 0.1 while server_running?
|
99
|
+
DRb.stop_service
|
99
100
|
true
|
100
101
|
end
|
101
102
|
|
data/lib/coin/version.rb
CHANGED