Alter connection state in software transaction
Alter connection state in software transaction

- Use ref instead of atom to store state
- Use dosync to group atomic state changes

nilenso/time-tracker,nilenso/time-tracker,nilenso/time-tracker