Commit 40b6093b authored by Leo Iannacone's avatar Leo Iannacone

imported unsed function in caller

parent 51ef0a6d
...@@ -71,21 +71,15 @@ function __send_file (event_name, socket, data) { ...@@ -71,21 +71,15 @@ function __send_file (event_name, socket, data) {
}); });
} }
function __handler_get_file (socket, data) { function __handler_get_file (socket, data) {
file_path = utils.get_file_path(data) file_path = utils.get_file_path(data)
utils.watch_path_onsocket('file_newcontent', socket, data, file_path, __handler_file_newcontent) utils.watch_path_onsocket('file_newcontent', socket, data, file_path, function(event_name, socket, data) {
data.file.content = null
socket.emit(event_name, data)
})
__send_file('file', socket, data) __send_file('file', socket, data)
} }
function __handler_file_newcontent(event_name, socket, data) {
if(! utils.check_data_file(data))
return
data.file.content = null
socket.emit(event_name, data)
}
Client = function (socket) { Client = function (socket) {
socket.on('get_distribution_packages', function (data) { socket.on('get_distribution_packages', function (data) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment