nezuo / lapis

A DataStore abstraction library for Roblox
https://nezuo.github.io/lapis/
MIT License
55 stars 10 forks source link

Don't error when calling close again #35

Closed nezuo closed 7 months ago

nezuo commented 7 months ago

Instead of throwing an error when calling Document:close() again, it will instead return the original promise from the first call.

The motivation for this change is so that it won't error when calling it from PlayerRemoving if game:BindToClose happens to run first.