Skip to content

Commit

Permalink
Merge pull request #1543 from chrox/plugable-turbo
Browse files Browse the repository at this point in the history
disable turbo lib by default
  • Loading branch information
houqp committed Jun 3, 2015
2 parents d239a1c + a596219 commit a30fe26
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base
Submodule base updated 1 files
+1 −1 turbo
4 changes: 4 additions & 0 deletions defaults.lua
Expand Up @@ -182,6 +182,10 @@ KOBO_SCREEN_SAVER_LAST_BOOK = true -- get screensaver from last book if possible
-- proxy authentication is not supported yet.
NETWORK_PROXY = nil

-- Experimental features
-- Use turbo library to handle async HTTP request
DUSE_TURBO_LIB = false

-- ####################################################################
-- following features are not supported right now
-- ####################################################################
Expand Down
2 changes: 1 addition & 1 deletion frontend/ui/uimanager.lua
Expand Up @@ -523,7 +523,7 @@ function UIManager:handleInput()
end
function UIManager:initLooper()
if not self.looper and ffi.os ~= "Windows" then
if DUSE_TURBO_LIB and not self.looper then
TURBO_SSL = true
__TURBO_USE_LUASOCKET__ = true
local turbo = require("turbo")
Expand Down
3 changes: 3 additions & 0 deletions spec/unit/commonrequire.lua
Expand Up @@ -21,3 +21,6 @@ Input.dummy = true
-- turn on debug
local DEBUG = require("dbg")
--DEBUG:turnOn()

-- use turbo lib in test
DUSE_TURBO_LIB = true

0 comments on commit a30fe26

Please sign in to comment.