Skip to content

Commit

Permalink
Merge pull request #2 from darqs/fix_onclose
Browse files Browse the repository at this point in the history
Fix problem with connection.onClose callback
  • Loading branch information
wojtkowiak committed Jun 19, 2019
2 parents b71309c + 8acfb56 commit 61327a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TimeSync.server.js
Expand Up @@ -32,11 +32,11 @@ class TimeSyncCore {
this.syncNow(connection.id);
}, this.options.initialSyncDelay);

connection.onClose = () => {
connection.onClose(() => {
if (connection.id in this.sessions) {
delete this.sessions[connection.id];
}
};
});
});

this.syncInterval = Meteor.setInterval(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.js
@@ -1,6 +1,6 @@
Package.describe({
name: 'omega:time-sync',
version: '0.1.3',
version: '0.1.4',
summary: 'NTP style automatic server-client time synchronization',
git: 'https://github.com/wojtkowiak/meteor-time-sync',
documentation: 'README.md'
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "meteor-time-sync",
"version": "0.1.3",
"version": "0.1.4",
"scripts": {
"release": "meteor publish --release=METEOR@1.5.2.2"
}
Expand Down

0 comments on commit 61327a1

Please sign in to comment.