diff options
author | Christian Pointner <equinox@helsinki.at> | 2011-03-16 00:54:52 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2011-03-16 00:54:52 (GMT) |
commit | fba23d62b11f361af19eae4cf545f946c17b97a5 (patch) | |
tree | c02ac491b450ac3bd0f2261f8b5f593a7e8e964d /nopsyncd/tcpserver.lua | |
parent | 2edacdcb0ac14a1e3ab8d6f6bc2a56f81783a88a (diff) |
added rddb lookup
Diffstat (limited to 'nopsyncd/tcpserver.lua')
-rwxr-xr-x | nopsyncd/tcpserver.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/nopsyncd/tcpserver.lua b/nopsyncd/tcpserver.lua index fc19b9c..3f7c70a 100755 --- a/nopsyncd/tcpserver.lua +++ b/nopsyncd/tcpserver.lua @@ -20,7 +20,7 @@ -- require "socket" -db = require "db" +tempstorage = require "tempstorage" function init_server() local server = assert(socket.tcp()) @@ -86,9 +86,9 @@ end function main_loop() local pipefd = pipe.getreadfd() - local ret, err = db:init() + local ret, err = tempstorage:init() if ret == nil then - io.stderr:write("creation of db failed: " .. err .. "\n") + io.stderr:write("creation of tempstorage failed: " .. err .. "\n") os.exit(1) end @@ -133,8 +133,9 @@ function main_loop() end end + tempstorage:close() server:close() - cleanup_clients() + cleanup_clients() return 0 end |