Skip to content

Commit 0448f2d

Browse files
Don't use disabled storage areas as fallback storage
1 parent 756f197 commit 0448f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zm_event.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ void Event::Run() {
915915
// Try another
916916
Warning("Failed creating event dir at %s", storage->Path());
917917

918-
std::string sql = stringtf("SELECT `Id` FROM `Storage` WHERE `Id` != %u", storage->Id());
918+
std::string sql = stringtf("SELECT `Id` FROM `Storage` WHERE `Id` != %u AND `Enabled`=true", storage->Id());
919919
if (monitor->ServerId())
920920
sql += stringtf(" AND ServerId=%u", monitor->ServerId());
921921

0 commit comments

Comments
 (0)