Skip to content

Commit

Permalink
Wrap sequence numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuehl committed Sep 12, 2016
1 parent 70bdc8e commit a36ca83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def nextSeq():
with open(seqFileName) as seqFile:
seq = int(seqFile.read().rstrip("\n"))
seq += 1
if seq > 65535:
seq = 1
except:
seq = 1
with open(seqFileName, "w") as seqFile:
Expand Down

0 comments on commit a36ca83

Please sign in to comment.