needs / teerank

A simple ranking system for teeworlds
https://teerank.io
GNU General Public License v3.0
12 stars 5 forks source link

Fix regression in read/write server state #7

Closed nzyuzin closed 8 years ago

nzyuzin commented 8 years ago

The commit bd0658460bf1dae734953d70955876fdfd159c34 introduced a regression with impossibility to write server state for newly seen servers. Because server state is first read then written returning 0 if state is not present during read makes it impossible for write to happen therefore effectively blocking any state updates https://github.com/needs/teerank/commit/bd0658460bf1dae734953d70955876fdfd159c34#diff-0235f01a49d01b35e981a41f59a9d2d6R40

This PR also fixes left-out assertions that weren't removed in the said commit and adds vim generated .swp files in .gitignore.

needs commented 8 years ago

Works like a charm, thanks!