Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2f042f

Browse files
committed
Merge branch 'master' of github.com:mperham/memcache-client
2 parents 2f00ffc + 14b652d commit e2f042f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎lib/memcache.rb‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
MemCacheTimer = Timeout
2323
end
2424
rescue LoadError => e
25-
puts "[memcache-client] Could not load SystemTimer gem, falling back to Ruby's slower/unsafe timeout library: #{e.message}"
2625
require 'timeout'
2726
MemCacheTimer = Timeout
2827
end
@@ -1015,8 +1014,10 @@ def initialize(memcache, host, port = DEFAULT_PORT, weight = DEFAULT_WEIGHT)
10151014
@status = 'NOT CONNECTED'
10161015
@timeout = memcache.timeout
10171016
@logger = memcache.logger
1018-
1019-
self.extend(MemCache::EventedServer) if defined?(EM) and EM.reactor_running?
1017+
1018+
if defined?(EM) and EM.reactor_running? and defined?(MemCache::EventedServer)
1019+
self.extend(MemCache::EventedServer)
1020+
end
10201021
end
10211022

10221023
##

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /