Skip to content

Commit 48acbc8

Browse files
committed
Fix writing of advanced settings
After reading from stream we must return again to line 0 if we want to read file again
1 parent 04ddf2f commit 48acbc8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

serversettings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ def saveAdvanced (self):
440440
has_browsepoll = True
441441
break
442442

443+
# Return to the start of file
444+
f.seek(0)
445+
443446
for line in f:
444447
line = line.decode('UTF-8')
445448
l = line.lower ().strip ()

0 commit comments

Comments
 (0)