E
Erich Lin
If I have this snippet of code for the main page that loads:
def index
while 1
logger.info("hi")
end
end
Then, I close the browser that opened that page, I notice that the
logger continues to print "hi" to the file (using tail -f). Is there a
way to stop the server from running such actions when the browser is
closed? (The logger.info was just an example. It could be anything
else)
Thanks
def index
while 1
logger.info("hi")
end
end
Then, I close the browser that opened that page, I notice that the
logger continues to print "hi" to the file (using tail -f). Is there a
way to stop the server from running such actions when the browser is
closed? (The logger.info was just an example. It could be anything
else)
Thanks