Hi everyone! I'm new to nim and have a question about this

So I have this server on my network that has an encoded video that I download 
whenever it changes to my device. i used to have a python script that does 
this, but decided to do it in a new language just for fun. so far I really like 
nim but I have a problem where if I keep the program running the mem doesnt go 
down like it does in python so it just goes very high

this is my code
    
    
    var  client = newHttpClient()
    
    while true:
        client.downloadfile("http://192.168.1.15/video.mp4";, "updated.mp4")
        sleep(60000)
    
    
    
    Run

someone told me I should add client.close but that doesn't fix it and my ram 
used is still high do I need to use the gcfullcollect function? I tried it and 
it didn't work... I'm not used to system languages :/

thanks everyone!

Reply via email to