Commit f9287622 authored by Leo Iannacone's avatar Leo Iannacone

send status only if makes sense

parent 47202de0
......@@ -45,7 +45,8 @@ var broadcast = new Broadcaster(io.sockets, status)
io.sockets.on('connection', function(socket) {
client = new Client(socket)
client.send_status(status)
if (status.packages.length > 0)
client.send_status(status)
});
io.sockets.on('disconnect', function(socket){
......
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