Moved runtime.LockOSThread() to urtrator.go.

This commit is contained in:
2016-11-21 01:33:04 +05:00
parent 57a5f7cb4c
commit 0392f510f5
4 changed files with 1 additions and 17 deletions

View File

@@ -85,7 +85,6 @@ func (c *Cache) FlushServers(data map[string]string) {
}
}
Database.Unlock()
tx := Database.Db.MustBegin()
fmt.Println("Adding new servers...")
if len(new_servers) > 0 {
@@ -102,7 +101,6 @@ func (c *Cache) FlushServers(data map[string]string) {
}
tx.Commit()
Database.Lock()
fmt.Println("Done")
}