lib/logdna.rb in logdna-1.0.6 vs lib/logdna.rb in logdna-1.0.7
- old
+ new
@@ -159,17 +159,17 @@
return false
end
def close
- if @@client
+ if defined? @@client
@@client.exitout()
end
exit!
end
at_exit do
- if @@client
+ if defined? @@client
@@client.exitout()
end
exit!
end
end