Skip to content

Commit

Permalink
fixing return type and adding to test plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Dec 23, 2024
1 parent fb549a8 commit 5962cdc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BedrockServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,7 @@ void BedrockServer::unblockCommandPort(const string& reason) {
}
}

virtual void isCommandPortClosed(const string& reason) {
virtual bool isCommandPortClosed(const string& reason) {
if (!strlen(reason)) {
return _isCommandPortLikelyBlocked;
}
Expand Down
2 changes: 1 addition & 1 deletion sqlitecluster/SQLiteServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ class SQLiteServer : public STCPManager {
// You must block and unblock the command port with *identical strings*.
virtual void blockCommandPort(const string& reason);
virtual void unblockCommandPort(const string& reason);
virtual void isCommandPortClosed(const string& reason);
virtual bool isCommandPortClosed(const string& reason);
};
1 change: 1 addition & 0 deletions test/tests/SQLiteNodeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class TestServer : public SQLiteServer {
virtual void notifyStateChangeToPlugins(SQLite& db, SQLiteNodeState newState) {}
virtual void blockCommandPort(const string& reason) { };
virtual void unblockCommandPort(const string& reason) { };
virtual bool isCommandPortClosed(const string& reason) { return false; };
};

struct SQLiteNodeTest : tpunit::TestFixture {
Expand Down

0 comments on commit 5962cdc

Please sign in to comment.